Next.js Discord

Discord Forum

How do i fix this error?! Been at this for the past 2 and half hours and i see no progress..

Unanswered
Juzcallmekaushik posted this in #help-forum
Open in Discord
Error:
Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (.next\server\edge\chunks\edge-wrapper_bedbef32.js:693:27)
    at runModuleExecutionHooks (.next\server\edge\chunks\edge-wrapper_bedbef32.js:738:9)
    at instantiateModule (.next\server\edge\chunks\edge-wrapper_bedbef32.js:691:9)
    at getOrInstantiateModuleFromParent (.next\server\edge\chunks\edge-wrapper_bedbef32.js:624:12)
    at esmImport (.next\server\edge\chunks\edge-wrapper_bedbef32.js:142:20)
    at <unknown> (.next\server\edge\chunks\edge-wrapper_bedbef32.js:693:27)
    at runModuleExecutionHooks (.next\server\edge\chunks\edge-wrapper_bedbef32.js:738:9)
    at instantiateModule (.next\server\edge\chunks\edge-wrapper_bedbef32.js:691:9)
 ✓ Compiled middleware in 361ms

when i run the server with npm run dev i get this error.

2 Replies

Tan
https://github.com/nextauthjs/next-auth/issues/12731#issuecomment-2698961955
pnpm install @auth/prisma-adapter@2.7.2

will solve it