Getting 'Request is not defined' error when running a Next.js project with Node.js

198 views Asked by At

I recently created a Next.js project and attempted to run it using the 'npm run dev' command, but I encountered the following error message:

'Request is not defined' Error in Next.js with Node.js

After some research, I found that this error may be related to my Node.js version (16.16.0). I understand that Next.js requires Node.js 18.17 or later to run properly.

Can someone provide guidance on how to resolve this issue and update my Node.js version to the required one?

0

There are 0 answers