skip to Main Content

Javascript – TypeError: Cannot read properties of undefined (reading 'headers') at eval Next js

Hi i am having this error in next js TypeError: Cannot read properties of undefined (reading 'headers') at eval (webpack-internal:///(sc_server)/./node_modules/next/dist/server/future/route-modules/app-route/module.js:254:61) a sample of code snippet newUser .save() .then(() => NextResponse.json({ msg: "Successfuly created new User: " + newUser ,status:200}) )…

VIEW QUESTION
Back To Top
Search