Closed banujan6 closed 10 months ago
are you using svgdom?
Only In this part,
const { createSVGWindow } = require('svgdom');
global.window = createSVGWindow();
global.document = global.window.document;
// register window and document
registerWindow(window, document);
In that case you are completely using it :D. Will look into it when i have some time. If you wanna help, you can check if the same error happens when running it in the browser
Sure, let me check.
@Fuzzyma It is not happening in the browser. Just node things..
Then its most likely a bug in svgdom. thanks for investigating!
Yeah let me dig into it further and try to add a fix. Thanks for your support.
@banujan6 I tried this myself and couldnt reproduce it. Do you have a full script that triggers the error?
The
<path>
elements which hasEMPTY
d
attribute throws,in below code
Works Fine
Throws Error
Environment
NodeJS v19.7.0
,@svgdotjs/svg.js ^3.1.2
,MacOS Ventura - M1