DEV Community

darksimpp79
darksimpp79

Posted on

React Problem

Hi, i have problem with my react code.

Error: Cannot read properties of null (reading 'useContext')
TypeError: Cannot read properties of null (reading 'useContext')
at Object.useContext (http://localhost:3000/static/js/bundle.js:88199:25)
at useNavigate (http://localhost:3000/static/js/bundle.js:82336:42)
at Snackbars (http://localhost:3000/static/js/bundle.js:2088:79)
at ./src/pages/HomePage.tsx (http://localhost:3000/static/js/bundle.js:396:67)
at options.factory (http://localhost:3000/static/js/bundle.js:100553:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:99946:33)
at fn (http://localhost:3000/static/js/bundle.js:100210:21)
at ./src/App.tsx (http://localhost:3000/static/js/bundle.js:20:73)
at options.factory (http://localhost:3000/static/js/bundle.js:100553:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:99946:33)

https://pastebin.com/v0EN8iKM
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay