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

Bug with Next.js Edge runtime on 3.0.4 #82

Open
samhenderson511 opened this issue Dec 10, 2024 · 1 comment
Open

Bug with Next.js Edge runtime on 3.0.4 #82

samhenderson511 opened this issue Dec 10, 2024 · 1 comment

Comments

@samhenderson511
Copy link

Bug report

After upgrading to 3.0.4 from 3.0.2, the build fails with the following error:

Failed to compile.

./middleware.ts
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime 
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation

The error was caused by importing 'bloom-filters/dist/api.js' in './middleware.ts'.

Import trace for requested module:
  ./middleware.ts

Versions

Next.js: 14.2.13
Node: 22.12

@folkvir
Copy link
Collaborator

folkvir commented Dec 11, 2024

Thank you for the report. Do you have other information about the error? A specific package identified as the root cause of the problem?
We updated 2 dependencies since 3.0.2 but also there are a few other sub-dependencies that have been updated in the yarn.lock. Maybe one of them is now using some wasm now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants