theyashpatel / yt-react-weather-app

104 stars 35 forks source link

problem with toast #3

Open Arpish00 opened 1 year ago

Arpish00 commented 1 year ago

maybe there's problem with toast in react.development.js, they aren't loading instead causing whole page to go blank!

Arpish00 commented 1 year ago

react.development.js:1626

   Uncaught TypeError: Cannot read properties of null (reading 'useReducer')
at useReducer (react.development.js:1626:1)
at useToastContainer (useToastContainer.ts:54:1)
at ToastContainer.tsx:15:1
at renderWithHooks (react-dom.development.js:16305:1)
at updateForwardRef (react-dom.development.js:19226:1)
at beginWork (react-dom.development.js:21636:1)
at beginWork$1 (react-dom.development.js:27426:1)
at performUnitOfWork (react-dom.development.js:26557:1)
at workLoopSync (react-dom.development.js:26466:1)
at renderRootSync (react-dom.development.js:26434:1)
amansingh88688 commented 1 year ago

You just need to install toastify library: npm i react-toastify