Build error #612
Replies: 3 comments 1 reply
-
Did you update your packages? |
Beta Was this translation helpful? Give feedback.
-
Probably you have a mismatch with a Next.js global installation. |
Beta Was this translation helpful? Give feedback.
-
I have another problem when running npm run build,can you help me? thanks.
events.js:352 Error: connect ECONNREFUSED 0.0.0.0:443 npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
Beta Was this translation helpful? Give feedback.
-
Today I started experiencing errors while building the app.
This error for each project page:
Build error:
And I looked up the React error saying:
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
Everything was working fine and I didn't touch anything. I tried cleaning npm cache, reinstalling the app multiple times and on different devices. I still get this error.
Could you please let me know if you're having the same issue and how to fix this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions