TypeError: Cannot read properties of null (reading 'useContext') #67697
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
Webpack
Related to Webpack with Next.js.
Link to the code that reproduces this issue
https://github.com/official-MKV/test-reproduction
To Reproduce
Current vs. Expected behavior
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of null (reading 'useContext')
Provide environment information
Which area(s) are affected? (Select all that apply)
Webpack
Which stage(s) are affected? (Select all that apply)
next build (local), Vercel (Deployed)
Additional context
I noticed the error on one of my previous projects after trying to
next build
, I searched for a solution online, went through everything, there is already an existing issue with this same title, but it was never closed and a conclusive solution was never given.package.json
,node_modules
, cleared cache and re-installednext build
and the error was till thereThe text was updated successfully, but these errors were encountered: