skip to Main Content

Reactjs – Im using next.js new app router and in the code bellow I get a TypeError: Cannot read properties of undefined (reading 'headers')

Updated code after some suggestions from comments(still getting the same error): const bcrypt = require("bcrypt") const User = require("../../model/userModel") export async function POST(req: NextRequest) { await dbConnect() const res = await req.json() await bcrypt.hash(res.passwd, 10) .then(async (hashedPassword: any) => {…

VIEW QUESTION

Reactjs – npm run dev don't give me the link

Please help me guys when I execute npm run dev I get this error : failed to load config from C:WindowsSystem32react-appvite.config.ts error when starting dev server: Error: EPERM: operation not permitted, open 'C:WindowsSystem32react-appvite.config.ts.timestamp-1690288065442-391efff42da45.mjs' i think my problem seems to be…

VIEW QUESTION
Back To Top
Search