Skip to content

Bug with Next.js Edge runtime on 3.0.4 #82

@samhenderson511

Description

@samhenderson511

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions