-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
WebAssembly with Reference Types cannot be parsed #15566
Comments
I think parser does not support them.. ( |
Why webpack try to parse it? can we just use file-loader? |
There are some exports optimization.. so webpack parsing wasm.
yes, sure. also in webpack@5 there is |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
ping |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
Last time you at least gave a warning, and it's marked as completed?? This has to be the worst bot ever. |
Ok dude |
@xtuc Friendly ping |
@bes Yeah, I see the problem, need wait - rustwasm/wasm-bindgen#4211, but anyway, it will not solve - xtuc/webassemblyjs#1146, we need someone to send a pr and solve this issue, unfortunately my knowledge in you is not deep enough to complete this task. I would say more that this problem is more a question of the node ecosystem, not just webpack |
Version 1.13.1 has been published with reference types support. We need to update in webpack. |
@xtuc I tried |
The same - #18940 |
Thanks for checking @alexander-akait . I'm having a look. |
I published 1.14.1. Could you please try again @alexander-akait ? Sorry I had some issues with my publish setup. |
@xtuc Works for me!
https://github.com/mateuszJS/rust-webpack-v5-template/tree/webpack-v5-migration |
@xtuc works for me as well! Thank you very much! |
seeing if this fixes supposed to fix webpack/webpack#15566, appears not to
I'm still getting the error "Module parse failed: Internal failure: parseVec could not cast the value" https://github.com/ivnsch/molsimnext the only way to fix it is still the workaround
|
@ivnsch what version do you use? |
Version of webpack? It's a newly created nextjs project ( I also tried specifying these dependencies as per post above:
|
it seems like nextjs is not updating their webpack. So for the time being, doing this will fix the issue webpack/webpack#15566
Webpack was running into webpack/webpack#15566 with the latest @nimiq/core version, but an update fixed it.
Reopened #13559
Bug report
WebAssembly modules with enabled Reference Types cannot be loaded. The webpack version I tested this with is 5.38.1
For a minimal reproduction I created this repository: https://github.com/Tarnadas/webpack-5-wasm-reftypes
The error message is the following:
I used Rust with wasm-bindgen, which provides a cli option to enable reference types. Instead of directly using wasm-bindgen, I’ve been using wasm-pack, but since it’s unmaintained, you will need my fork to pass the cli option down to wasm-bindgen. You can see my PR for wasm-pack here: rustwasm/wasm-pack#888
By looking at the error message, it seems to be a problem with the wasm parser library. I checked its repository and couldn’t find any mentions about reference types unfortunately, so I’m not sure how to proceed with this.
The text was updated successfully, but these errors were encountered: