Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydration failed when using "npm start" #10

Closed
moeakwak opened this issue Apr 22, 2024 · 2 comments
Closed

Hydration failed when using "npm start" #10

moeakwak opened this issue Apr 22, 2024 · 2 comments

Comments

@moeakwak
Copy link

moeakwak commented Apr 22, 2024

Hello,

I've been experimenting with this repository for a while. It runs smoothly in development mode, but crashes in production. The console reports a "Minified React error #418", indicating a "Hydration failed because the server rendered HTML didn't match the client." error.

Steps to reproduce:

git clone https://github.com/rphlmr/remix-hono-vite
cd remix-hono-vite
pnpm i
pnpm run build
pnpm start

Environment:

  • Node.js v20.11.1
  • MacOS on M1 Pro

Upon visiting http://localhost:3000/, the page fails to load properly, displaying several errors in the console:

Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Uncaught Error: Minified React error #423; visit https://reactjs.org/docs/error-decoder.html?invariant=423 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

I have tried removing all browser extensions, but this has not resolved the issue.

And I found this issue seems similar to: remix-run/remix#2570

Does this happen in your environment?

Any assistance would be greatly appreciated. Thank you in advance for your help!

@moeakwak
Copy link
Author

Oh, I figured it out! Finally after several hours of painful research.

Following the advice in this comment: remix-run/remix#9268 (comment), everything now works normally.

@rphlmr
Copy link
Owner

rphlmr commented Apr 22, 2024

Oh, thanks for your research!

@rphlmr rphlmr pinned this issue Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants