Answer the question
In order to leave comments, you need to log in
Why does the current error occur when running next.js and how can I fix it?
Good evening. Please tell me, what is the reason for the following behavior of the next when trying to start?
(It all started after I canceled the build of the application by closing the terminal)
Here is what I tried: Delete the modules folder and install them with npm i, npm update, npm i npm, start web storm with the admin.
There was no reaction to the actions above, in Google half of the answers say that the problem is in the code - the second half that after reinstalling and deleting node_modules everything worked. I tried to comment on all the changes made in the code (nonsense as for me, because before the build stopped everything was all right) - also to no avail.
C:\Users\User\Desktop\YouDecide\youdecide>next dev
[ wait ] starting the development server ...
[ info ] waiting on localhost:3000 ...
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at new Server (C:\Users\User\Desktop\YouDecide\youdecide\node_modules\next\dist\next-server\ server\
next-server.js:81:20)
at new DevServer (C:\Users\User\Desktop\YouDecide\youdecide\node_modules\next\dist\server\next-dev-
server.js:1:2924)
at createServer (C:\Users\User\Desktop\YouDecide\youdecide\node_modules\next\dist\server\next.js:2:
105)
at start (C:\Users\User\Desktop\YouDecide\youdecide\node_modules\next\dist\server\lib\start-
server.js:1:323)
at nextDev (C:\Users\User\Desktop\YouDecide\ youdecide\node_modules\next\dist\cli\next-dev.js:21:279
)
at C:\Users\User\Desktop\YouDecide\youdecide\node_modules\next\dist\bin\next:28:339
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question