jsxgraph icon indicating copy to clipboard operation
jsxgraph copied to clipboard

import JXG from 'jsxgraph' is breaking the Vue/vite bundling process

Open rwmorton opened this issue 2 years ago • 4 comments

Hi there,

It seems that this line:

import JXG from 'jsxgraph'

is breaking my build with vite.

Here is the error emitted during the build:

image

If I remove the import line it builds fine but of course the graph doesn't load.

rwmorton avatar Jan 10 '23 14:01 rwmorton

Thank you very much for your helpful feedback. Can you please test the latest version? Either the main branch from github or release candidate 1.5.0-rc2 from npm:

npm install --save jsxgraph@next

Today - hopefully - all dependencies could be removed.

alfredwassermann avatar Jan 11 '23 16:01 alfredwassermann

@rwmorton I had a similar issue in rc1 and it was fixed in rc2. @alfredwassermann FYI, rc2 fixed this issue for me.

geometryzen avatar Jan 12 '23 19:01 geometryzen

Thank you for the feedback, I'm currently on a different project but will definitely try updating to see if this fixes the issue. Will report back if not!

rwmorton avatar Jan 13 '23 07:01 rwmorton

Thanks guys, looks like upgrading to RC2 fixed it!

rwmorton avatar Feb 16 '23 08:02 rwmorton