Skip to content

getting **Dynamic Code Evaluation** error #398

@mistersingh179

Description

@mistersingh179

Hi, I am using next.js v14 with edge runtime.

I get this error on build:

Failed to compile.

./node_modules/mailgun.js/mailgun.web.js
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

Import trace for requested module:
./node_modules/mailgun.js/mailgun.web.js

How can this be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions