You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, while testing, the app was buggy and didn't react as it should. The console gave the following warning:
Uncaught Error: Minified React error #405; visit https://reactjs.org/docs/error-decoder.html?invariant=405 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Following the link, the error appeared to be:
hydrateRoot(...): Target container is not a DOM element.
Issue fixed! See #162, the problem is that I inverted the hydrateRoot parameters.
Particular attention to the parameters inversion in the NEW hydrate function:hydrate(<App tab="home" />, container) vs hydrateRoot(container, <App tab="home" />).
Finally, if your app uses server-side rendering with hydration, upgrade hydrate to hydrateRoot:
// Beforeimport{hydrate}from'react-dom';constcontainer=document.getElementById('app');hydrate(<Apptab="home"/>,container);// Afterimport{hydrateRoot}from'react-dom/client';constcontainer=document.getElementById('app');constroot=hydrateRoot(container,<Apptab="home"/>);// Unlike with createRoot, you don't need a separate root.render() call here.
Describe the bug
Github Action Build and deploy triggered by PR #161 [MERGE]: release to master seemed to work correctly and got deployed on Github Pages by Github Action pages build and deployment.
However, while testing, the app was buggy and didn't react as it should. The console gave the following warning:
Uncaught Error: Minified React error #405; visit https://reactjs.org/docs/error-decoder.html?invariant=405 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Following the link, the error appeared to be:
hydrateRoot(...): Target container is not a DOM element.
To Reproduce
Steps to reproduce the behavior:
Run Workflow
Build and deploy.Expected behavior
The website should be responsive and work flawlessly with no errors.
Screenshots
See #161 (comment)
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: