Problems integrating svgcanvas in angular project - 'loader to handle this file type' error #835
Replies: 2 comments 1 reply
-
Hi, im got also problems to integrate this svgeditor in angular 14.x or 15.x. like the documentation says: "npm i -s '@svgedit/svgcanvas' you can then import it in your application: import svgCanvas from '@svgedit/svgcanvas'" doesnt work, i got a TS7016 Error
2 import SvgCanvas from '@svgedit/svgcanvas'; Thanks and Greetings Steffen |
Beta Was this translation helpful? Give feedback.
-
I updated to angular 14 and the problem is gone. Sorry, that i couldnt help you with your problem. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I tried to integrate svgcanvas in a angular project to create our own SVG-Editor GUI with the gread editor from svgedit.
I installed the plugin with npm and tried to instantiate a new Canvas inside a angular component:
import SvgCanvas from '@svgedit/svgcanvas';
` const container = document.querySelector('#editorContainer');
But i'm not able to use it. I get the error:
It seems that this is a Problem with Typescript that does not understand how to mange the js-File. I never had such a problem with a npm-imported dependency and cant find any solution for that. Maybe someone can help?
Regards
Michael
Beta Was this translation helpful? Give feedback.
All reactions