Dynamic Code Evaluation not allowed in Edge Runtime

hello there while deploying on vercel, i got this error
./lib/server-utils.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
./lib/server-utils.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
from
The error was caused by importing 'uploadthing/server/index.js' in './lib/server-utils.ts'.
The error was caused by importing 'uploadthing/server/index.js' in './lib/server-utils.ts'.
`
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?