cesium: cesium 1.96.0 breaks (at least vite | vite-plugin-cesium) build chains due to export from mersenne-twister.js
Dear 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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 15 (13 by maintainers)
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.
We can continue the discussion here, but I’m going to close the issue since no additional changes are needed in CesiumJS itself. Thanks!
Hi @nshen! Thank you for creating these two projects. We’re happy to help answer any questions, and to review any PRs if needed. However, I don’t think we have the bandwidth to take on maintenance for
vite-plugin-cesium
orcreate-cesium
at the moment.Hi @ggetz, I made a pr https://github.com/CesiumGS/cesium/pull/10655, please check.
And BTW I hope cesium team can help my vite-plugin-cesium and create-cesium projects. I think they were the best and the fastest way to develop cesium-based projects before 1.96.0, and hundreds of projects are based on it.
PR is welcome, or if you are interested in officially maintaining this project please talk to me @nshen121 or email me nshen121@gmail.com , thanks.