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

nextjs usage fails in middleware functions because of dynamic functions #29

Open
saurabhnemade opened this issue Jan 30, 2024 · 0 comments

Comments

@saurabhnemade
Copy link

saurabhnemade commented Jan 30, 2024

@jfromaniello

NextJS builds fails to use it in middleware function..
Not sure if updating the lodash clonedeep will resolve this.
Perhaps clonedeep can be now replaced with structuredClone https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

../../node_modules/.pnpm/[email protected]/node_modules/lodash.clonedeep/index.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/.pnpm/[email protected]/node_modules/lodash.clonedeep/index.js
../../node_modules/.pnpm/[email protected]/node_modules/lru-memoizer/lib/async.js
../../node_modules/.pnpm/[email protected]/node_modules/lru-memoizer/lib/index.js
../../node_modules/.pnpm/[email protected]/node_modules/jwks-rsa/src/wrappers/cache.js
../../node_modules/.pnpm/[email protected]/node_modules/jwks-rsa/src/wrappers/index.js
../../node_modules/.pnpm/[email protected]/node_modules/jwks-rsa/src/JwksClient.js
../../node_modules/.pnpm/[email protected]/node_modules/jwks-rsa/src/index.js
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

1 participant