After adding svg.js as a dev dependency, it now shows up in my package.json as svg.js": "^2.6.6"
.
When I try to import the library in a javascript file using:
import SVG from 'svg.js';
However, when attempting the same in a Typescript file, an error is thrown: "cannot find module svg.js".
In addition, there is a folder named "typings" containing the type definition file available on the official svg.js website.
What could be causing the issue with not being able to utilize this library?