#Run Error

17 messages · Page 1 of 1 (latest)

tame flare
#

I'm newbie in next.js and getting error to run project and have question we use JS or typescript throughout the next.js

viscid smelt
#

you can use both js or ts, its up to you

tame flare
#

Im getting this error when in run command npm run dev..

upper pawn
#

Can you post your package.json and your folder structure

tame flare
unkempt pond
#

install modules again after removing node_modules

#

and package-lock.json

tame flare
#

Im missing next folder but in package.jason have installed

unkempt pond
#

try to remove the files I said and install again

tame flare
#

okay

upper pawn
# tame flare

If you are using typescript then you will have to install few more packages
@types/react, @types/react-dom, @types/node, typescript

tame flare
#

Im using js

upper pawn
#

It should work

tame flare
#

Okay i try again

upper pawn
#

and make sure you have an index.js and _app.js file in your pages

tame flare
#

sure