You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file called test.mjs with contents import { Cartographic } from "./Source/Cesium.js";
Run node test.mjs
It fails with the below callstack
$ node test.mjs
file:///home/mamato/Git/CesiumGS/cesium/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js:33
class Crc32Stream extends TransformStream {
^
ReferenceError: TransformStream is not defined
at file:///home/mamato/Git/CesiumGS/cesium/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js:33:27
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
I did a little digging and it appears zip.js module released a new version in the past month that caused this. Pinning to an older version fixes the issue (need to experiment to find out the exact version). May be worth opening an issue with them to see what they have to say.
Once we address this, it would be good to add the test.mjs and run it as part of CI to avoid breaking ESM support in the future.
test.mjs
with contentsimport { Cartographic } from "./Source/Cesium.js";
test.mjs
I did a little digging and it appears
zip.js
module released a new version in the past month that caused this. Pinning to an older version fixes the issue (need to experiment to find out the exact version). May be worth opening an issue with them to see what they have to say.Once we address this, it would be good to add the test.mjs and run it as part of CI to avoid breaking ESM support in the future.
CC @ggetz
The text was updated successfully, but these errors were encountered: