TypeError: Cannot read properties of null (reading 'useReducer') #70498
Replies: 5 comments 4 replies
-
Here is my full stack trace:
|
Beta Was this translation helpful? Give feedback.
-
Just out of curiosity, what Node.js version are you using? |
Beta Was this translation helpful? Give feedback.
-
Have you been able to resolve the issue now, cos i'm having the same issues |
Beta Was this translation helpful? Give feedback.
-
Fixed it with:
Seems to be a problem with where next is installed. Next is trying to pickup files from /opt/homebrew whereas it should pick it up from project folder. |
Beta Was this translation helpful? Give feedback.
-
Removing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I deployed a nextjs app one month ago on vercel which is still running fine. Today, I wanted to make some changes in it and see that My nextjs app mainline is randomly failing with the below error:
Note that I am not using useReducer directly in my app and also is evident from the stack trace.
On digging deeper, I tried to create a new NextJs project from the official doc using create-next-app@latest.
Surprisingly, that also gave me the same error. Apparently, all nextjs app is failing for me when I use the latest version.
Here is my package.json:
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions