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

Top comments (0)