Weird useContext error randomly
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
Hey guys, my nextjs app (seemingly) randomly throws the following error, and I'm not sure why:
Any ideas what could be causing this?
Thanks
Server Error
TypeError: Cannot read properties of null (reading 'useContext')
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
t.useContext
file:///Users/user/app/web/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (35:162278)
Module.usePathname
node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/esm/client/components/navigation.js (74:0)
ErrorBoundary
node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/esm/client/components/error-boundary.js (111:24)Any ideas what could be causing this?
Thanks