svelte-mindmap icon indicating copy to clipboard operation
svelte-mindmap copied to clipboard

Error when running with Snowpack (via SvelteKit, etc.)

Open aral opened this issue 4 years ago • 0 comments

I haven’t tested without Snowpack (so I’m not sure if this is a Snowpack-specific issue) but on latest SvelteKit (as well as on my own non-SveltKit setup that uses Snowpack), I am getting the following error when I click into the Mindmap area after the component loads (empty canvas):

node.getScreenCTM() is null

To reproduce

mkdir sveltekit-mindmap
cd sveltekit-mindmap
npm init svelte@next
npm install
npm install svelte-mindmap

Then, add the example in the readme to routes/index.svelte

Finally, run it with:

npm run dev

aral avatar Jan 19 '21 05:01 aral