Skip to content

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

Closed
njbrown opened this issue Dec 24, 2024 · 6 comments · Fixed by #75847
Labels
linear: next Confirmed issue that is tracked by the Next.js team. locked 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 Webpack Related to Webpack with Next.js. labels Dec 24, 2024
@Jazzpirate
Copy link

seconded. This makes next.js impossible to use with wasm as e.g. produced by rust/wasm-pack etc.

@abchugh
Copy link

abchugh commented Jan 11, 2025

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).

@samcx samcx removed Developer Experience bug Issue was opened via the bug report template. labels Jan 22, 2025
@github-actions github-actions bot added the linear: next Confirmed issue that is tracked by the Next.js team. label Feb 3, 2025
@ashi009
Copy link
Contributor

ashi009 commented Feb 8, 2025

Q: How long will it take to make this one line change?
A: 2mo and counting

@r34son
Copy link
Contributor

r34son commented Feb 8, 2025

Q: How long will it take to make this one line change?
A: 2mo and counting

Open pr then

@ashi009
Copy link
Contributor

ashi009 commented Feb 10, 2025

@r34son yeah, I was going to.

Following this lovely dev guide, and run into pnpm/pnpm#9029. Now should I go fix their bugs?

Copy link
Contributor

github-actions bot commented Mar 4, 2025

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.

@github-actions github-actions bot added the locked label Mar 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linear: next Confirmed issue that is tracked by the Next.js team. locked Webpack Related to Webpack with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants