Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: The requested module '/node_modules/mersenne-twister/src/mersenne-twister.js?v=af747562' does not provide an export named 'default' #557

Closed
Wecle opened this issue Aug 17, 2022 · 3 comments

Comments

@Wecle
Copy link

Wecle commented Aug 17, 2022

image

node v14.15.5

I copy the same code from example/vite.Running successful but work error.

@rot1024
Copy link
Member

rot1024 commented Aug 17, 2022

Cesium has recently renewed its dependent libraries, but Vite currently has a bug that prevents it from building CommonJS properly, which seems to be causing build errors. I am waiting for Vite to be fixed that bug.

workaround: downgrade Cesium to v1.95

Check: vitejs/vite#3910

@Wecle
Copy link
Author

Wecle commented Aug 17, 2022

Cesium has recently renewed its dependent libraries, but Vite currently has a bug that prevents it from building CommonJS properly, which seems to be causing build errors. I am waiting for Vite to be fixed that bug.

workaround: downgrade Cesium to v1.95

Check: vitejs/vite#3910

Thanks a lot!Its working now.

@rot1024
Copy link
Member

rot1024 commented Aug 26, 2022

@Wecle nshen/vite-plugin-cesium#34 was the PR that really needed to be referenced. The issue has been solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants