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

Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime #121

Open
barrynorman opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barrynorman
Copy link

Versions:

  • Package Version: 2.7.0
  • Tailwindcss Version: 3.4.14

Description:

I'm using react-email with tailwind.
In order to use CSS variables I found a gist to use your plugin.
Unfortunately as soon as I use the plugin i get the following error while building.

./tailwind.config.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 '@mertasan/tailwindcss-variables/src/index.js' in './tailwind.config.ts'.

Import trace for requested module:
  ./tailwind.config.ts
  ./emails/verify-email.tsx
  ./src/server/authSendRequest.ts
  ./src/server/auth.ts
  ./src/middleware.ts


> Build failed because of webpack errors

Steps To Reproduce:

  • Install latest next js 14.x.x with latest react-email and tailwind, components
  • Try to build the project
@barrynorman barrynorman added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant