Bump webpack dependency to 5.97.1 to resolve compilation errors on .wasm files with Reference Types enabled. #74265
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Webpack
Related to Webpack with Next.js.
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: