Here's a photo showing error messages displayed on my website. Strangely, there are no errors appearing in my terminal and the website loads perfectly fine. However, I encountered some issues when trying to make styling changes using my dev tools. After making these changes, I decided to revert back without saving any modifications. But then, my site refused to load properly and instead, a black screen appeared with the following error messages:
The error above occurred in the <div> component:
at div
React will attempt to recreate this component tree from scratch utilizing the provided error boundary, ErrorBoundary.
react_devtools_backend_compact.js:2367 The aforementioned error happened within the <ForwardRef(Canvas)> component:
Consider incorporating an error boundary in your tree for custom error handling.
Visit https://reactjs.org/link/error-boundaries to understand more about error boundaries.
overrideMethod @ react_devtools_backend_compact.js:2367
react-dom.development.js:26923 Uncaught Error: R3F: Div is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively
I attempted to troubleshoot by deleting both node modules and pack.lock.json files, followed by running npm i and npm install command. Unfortunately, this did not resolve the issue. My current situation remains unknown.