cesium 1.96.0 breaks (at least vite | vite-plugin-cesium) build chains due to export from mersenne-twister.js
See original GitHub issueDear cesium-team,
looks like cesium 1.96.0 might breaks some build chains - at least my vite-build is not working anymore. I got the following issue on my dev system. I did not test it yet on another system but I can reproduce the issue by updating from 1.95.0 to 1.96.0 in my update-test project and also in my main project (not public available). I added the error below:
Issue
export { default } from '/node_modules/mersenne-twister/src/mersenne-twister.js?v=9f8ad086';
cesium 1.96.0 is not working with vite, vue, vite-plugin-cesium
Sandcastle example | How to reproduce
use commit: https://github.com/meschg/vue-stack-cesium/commit/8141e225e9f89a01aac8bdff077358742891f89b
npm install cesium@1.96.0 -f
install vite/vue dep
vite
or use vue ui
Cause | How to fix
- Sorry, not absolutly clear to me 😦
- vite-plugin-cesium might be the issue but I did not test it yet without the vite-plugin-cesium Mabye someone else can check if it also is an issue when not using vite-plugin-cesium https://github.com/nshen/vite-plugin-cesium/issues/34
Browser: Firefox 91.11.0esr (64-Bit) node v16.132 npm 8.16.0
Operating System: Debian Bookworm 2022-08-07
Most errors I had with cesium in my vue project over the last two often where pretty similar in angular, react and anything with webpack. I am not sure if this also applies here. I hope this is no duplicate and also anyone else can reproduce this.
Thanks for you effort!
Kind regards, Gerhard
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:15 (13 by maintainers)
Top GitHub Comments
Hi @ggetz and @nshen,
thanks for your effort investigating and fixing this. I can confirm that both my vite projects now work with cesium@1.96.0 and vite-plugin-cesium@1.2.21.
Kind regards, meschg
Thanks @an501920078 , I hope it will work after Refactor “Source/ThirdParty” imports.