Closed Zasvieeel closed 2 years ago
That error is https://reactjs.org/docs/error-decoder.html/?invariant=423&args%5B%5D=ni
There was an error hydrating the page - it means that the html that was shipped down the page was not SSRd.
This commit should fix it https://github.com/jonluca/vite-typescript-ssr-react/commit/63c142ec9608155e61c2729944198c07fe63ee17
But the relevant change is in entry-client.tsx
if (import.meta.hot || !container?.innerText) {
const root = createRoot(container!);
root.render(<FullApp />);
} else {
hydrateRoot(container!, <FullApp />);
}
Hello. I've hosting this app on vercel and got unexpected error in console
Are this refers to vite configuration or not?
Please help..