-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Error: "AST should not contain Dynamic module import" when upgrading from 4.0.5 to 4.0.6 #24050
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
Comments
I get the same error with 4.0.5. Are you sure that was a working version? |
Yes I can reliable either trigger or not trigger the error by running:
=> Output is as above running:
I get emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.5 (53b38d0) and
it produces a Test.wasm and Test.js and I can find the MRP code back in minified form:
I'm running a fully patched up Ubuntu 24.04.2 on WSL and deleted my emsdk folder and got a new one by doing |
I was just updating the emscripten version which always pointed at a newer version of closure. If I switch versions with emsdk then I can reproduce. It looks like it was a change with how we run closure with emsdk and now the new version is selected. |
I think it was actually this change which removes the pinned version of closure compiler: https://chromium-review.googlesource.com/c/emscripten-releases/+/6388656 |
Looks like this is due to (related to) and upstream issue in closure compiler: google/closure-compiler#4126 |
Given
and
Zipped: MRP.zip
When building with emscripten 4.0.6 you get an error from closure:
whereas on 4.0.5 it compiles without any problems. This is caused by the
import
statement inminimal_mrp.js
.Note that we found a work around for it, but it would be nice if it wasn't needed.
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.6 (1ddaae4)
Failing command line in full:
The text was updated successfully, but these errors were encountered: