Next.js Discord

Discord Forum

NEXT JS error on install

Unanswered
Woodwasp posted this in #help-forum
Open in Discord
WoodwaspOP
I installed NextJS with the following line:
npx create-next-app@latest connecturn-site-v2-next
and after installing I tried running it with npm run dev but it gives me the following error:
[Symbol.iterator]() { ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (C:\Arya\Connecturn\connecturn-website-v2\node_modules\next\dist\server\web\spec-extension\adapters\headers.js:187:13) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:94:18) at Object.<anonymous> (C:\Arya\Connecturn\connecturn-website-v2\node_modules\next\dist\server\async-storage\request-async-storage-wrapper.js:12:18) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

I just started out with NextJs recently and have no idea what I am doing wrong.
Any help would be highly appreciated!

2 Replies

Ragdoll
What options did you choose when you ran npx create-next-app@latest connecturn-site-v2-next? I just ran it and selected all the defaults and ran npm run dev and it ran fine.
make sure your Node.js version is at least 16.8