Undescriptible error log on server about useReducer
Unanswered
Abyssinian posted this in #help-forum
AbyssinianOP
Hello Everyone ✌ï¸
I have a very annoying error that log on each reload and don't provide any useful informations about the source and how to debug :
And it goes on and on...
There is some some screenshots to sheer your eyes...
It would be really helpful if someone had any informations on how to get rid of this, or if this related to an current issue on next ðŸ‘
I really can't find anything on the good ol' internet.
Thanks 🙂
I have a very annoying error that log on each reload and don't provide any useful informations about the source and how to debug :
error unhandledRejection: Error [TypeError]: Cannot read properties of null (reading 'useReducer')
pnpm.. dev at Object.useReducer (/Users/loictorres/Desktop/Tulip/monorepos/node_modules/.pnpm/next@13.4.19_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react/cjs/react.development.js:1760:21)
pnpm.. dev at ReactDevOverlay (/Users/loictorres/Desktop/Tulip/monorepos/node_modules/.pnpm/next@13.4.19_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@next/react-dev-overlay/dist/client.js:857:969)
pnpm.. dev at ReactDevOverlayAnd it goes on and on...
There is some some screenshots to sheer your eyes...
It would be really helpful if someone had any informations on how to get rid of this, or if this related to an current issue on next ðŸ‘
I really can't find anything on the good ol' internet.
Thanks 🙂
3 Replies
European sprat
Somewhere in your code you're using client only hooks (useReducer in this case) in a server component
if it's a component from some library that hasn't been updated to support server components you may need to wrap it yourself
first step is to figure out where the code is being used