Skip to content
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

Bump webpack dependency to 5.97.1 to resolve compilation errors on .wasm files with Reference Types enabled. #74265

Open
njbrown opened this issue Dec 24, 2024 · 0 comments
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.

Comments

@njbrown
Copy link

njbrown commented Dec 24, 2024

Link to the code that reproduces this issue

https://github.com/njbrown/next-ferrostar

To Reproduce

  1. Clone repo
  2. run yarn to install deps
  3. run yarn dev

Current vs. Expected behavior

Current Behavior:

Webpack is unable to parse .wasm embedded in the @stadiamaps/ferrostar package.

image

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 in webpack:5.97.1 because they have updated the dependency @webassemblyjs/wasm-parser:1.14.1 .

references:
webpack/webpack#15566 (comment)
webpack/webpack#15566 (comment)

@njbrown njbrown added the bug Issue was opened via the bug report template. label Dec 24, 2024
@github-actions github-actions bot added Developer Experience Issues related to Next.js logs, Error overlay, etc. Webpack Related to Webpack with Next.js. labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant