-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Bump webpack dependency to 5.97.1 to resolve compilation errors on .wasm files with Reference Types enabled. #74265
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
seconded. This makes next.js impossible to use with wasm as e.g. produced by rust/wasm-pack etc. |
This is only blocker that is stopping us to use nextJS for our eLearning portal. Would highly appreciate if this gets fixed sson (seems to be a super easy fix). |
Q: How long will it take to make this one line change? |
Open pr then |
@r34son yeah, I was going to. Following this lovely dev guide, and run into pnpm/pnpm#9029. Now should I go fix their bugs? |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/njbrown/next-ferrostar
To Reproduce
yarn
to install depsyarn dev
Current vs. Expected behavior
Current Behavior:
Webpack is unable to parse .wasm embedded in the
@stadiamaps/ferrostar
package.Expected Behavior:
A map should be displayed on the page.
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 Available memory (MB): 40069 Available CPU cores: 8 Binaries: Node: 18.19.1 npm: 10.2.4 Yarn: 1.22.22 pnpm: 9.0.6 Relevant Packages: next: 15.1.2 // Latest available version is detected (15.1.2). eslint-config-next: 15.1.2 react: 19.1.0-canary-ef979d47-20241218 react-dom: 19.1.0-canary-ef979d47-20241218 typescript: 5.7.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience, Webpack
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
This happens because of a bug in a dependency (
@webassemblyjs/wasm-parser:1.12.1
) in the current webpack version (webpack:5.96.1
). This has since been fixed inwebpack:5.97.1
because they have updated the dependency@webassemblyjs/wasm-parser:1.14.1
.references:
webpack/webpack#15566 (comment)
webpack/webpack#15566 (comment)
The text was updated successfully, but these errors were encountered: