getting error while trying to run npm dev
Unanswered
Basset Bleu de Gascogne posted this in #help-forum
Basset Bleu de GascogneOP
getting the below error "class NextRequest extends Request {
^
ReferenceError: Request is not defined" Not sure why after googling someone mentioned to update node and I did its currenlty at 16.15 version not sure why this is happeneing
^
ReferenceError: Request is not defined" Not sure why after googling someone mentioned to update node and I did its currenlty at 16.15 version not sure why this is happeneing
11 Replies
Basset Bleu de GascogneOP
all I have done is initialize nextjs project
and upon running npm run dev I started getting the error
Chinese Egret
try updatting node to 18
Basset Bleu de GascogneOP
Nevermind the error resided due to my node still remaining on node 16 version
@Chinese Egret try updatting node to 18
Basset Bleu de GascogneOP
Thanks alot
Chinese Egret
ðŸ‘
Basset Bleu de GascogneOP
Found out apparently you can't update node via terminal using cli on windows you need to reinstall it
Chinese Egret
I usually use
nvmwith the CLLI@Chinese Egret https://github.com/nvm-sh/nvm
Basset Bleu de GascogneOP
Gotcha will check it out
Mucuchies
I updated to latest node 20.9.0 LTS version, but still getting the same error