Skip to content

bug: React SSR hydration error #1404

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

Open
AndreFilipeNavesDeBarros opened this issue Sep 18, 2024 · 1 comment
Open

bug: React SSR hydration error #1404

AndreFilipeNavesDeBarros opened this issue Sep 18, 2024 · 1 comment
Labels
help wanted Issues that are suitable for a community contributor

Comments

@AndreFilipeNavesDeBarros

Current Behavior

When adding the import scripts to the tag of my page layout on React 18 I receive and hydration error that sends my project into client mode. By updating to React 19 RC I get a better error message:
image

I have removed all browser extensions, so it is definitely not that one. from the error tree I would think that is the style being added to the head:
image

Expected Behavior

Be able to use my SSR on the server side.

Steps to Reproduce

  1. I created a default app with npx create-remix@latest.
  2. Opened the root.tsx file and added the scripts <script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script><script noModule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script> to my tag.
  3. run app with npm run dev.

Code Reproduction URL

No response

Additional Information

I've tried adding the import scripts to the tag and using the component from remix-utils and got the same issue.

@christian-bromann christian-bromann added help wanted Issues that are suitable for a community contributor and removed triage New issues labels Apr 16, 2025
Copy link

ionitron-bot bot commented Apr 16, 2025

This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.

If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.

For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that are suitable for a community contributor
Projects
None yet
Development

No branches or pull requests

2 participants