unhandledRejection: TypeError: Cannot read properties of null (reading 'useReducer') #61630
-
SummaryHey guys! i started my studies with next.js and i got this error when i'm trying to run the application. "unhandledRejection: TypeError: Cannot read properties of null (reading 'useReducer')" already tried to downgrade react Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Here is how i solved it:
apparently it was just the yarn cache |
Beta Was this translation helpful? Give feedback.
-
I'm using NPM, still facing the issue on newly created nextjs project, how do I solve? |
Beta Was this translation helpful? Give feedback.
-
I tried everything, nothing worked. What finally worked was changing from
page router to app router, I had to start over just for this.
…On Sun, Jul 7, 2024 at 20:40 Felipe Kamada ***@***.***> wrote:
the problem was yarn cache. So try clearing npm cache
—
Reply to this email directly, view it on GitHub
<#61630 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMEWMHZKN7X5WDGYNOYWRFDZLFHNXAVCNFSM6AAAAABCY63HLGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSNZZG43TG>
.
You are receiving this because you commented.Message ID: <vercel/next.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Here is how i solved it:
apparently it was just the yarn cache