skip to Main Content

Reactjs – NextJS – ReferenceError: Request is not defined | Reading old version of Node [solved]

When I run npm run dev in my nextjs project I get the following error: .../node_modules/next/dist/server/web/spec-extension/request.js:28 class NextRequest extends Request { ^ ReferenceError: Request is not defined at Object.<anonymous> (.../node_modules/next/dist/server/web/spec-extension/request.js:28:27) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at…

VIEW QUESTION

Docker install nvm – Ubuntu

I'm trying to install nvm like this: FROM maven:3-jdk-8 RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash RUN source ~/.nvm/nvm.sh RUN nvm install 16 RUN nvm use 16 However I keep getting this error:…

VIEW QUESTION
Back To Top
Search