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

fix react-dom@19 #1870

Closed
wants to merge 1 commit into from
Closed

fix react-dom@19 #1870

wants to merge 1 commit into from

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Dec 7, 2024

The root cause is facebook/react#28271 that was merged into version 19, which means we now have to pull in ReactDOM from "npm:react-dom/client" instead of "npm:react-dom".

This is (barely) documented in the release notes https://github.com/facebook/react/releases/tag/v19.0.0

From some manual testing, this PR is compatible with react-dom@18, but not @\17.

  • I'm trying to see if we can reroute "npm:react-dom" to "npm:react-dom/client" for asc. compat. (NO)
  • how to make this work with node (local install) (I DON'T KNOW)

closes #1866

@Fil Fil requested a review from mbostock December 7, 2024 17:44
@Fil
Copy link
Contributor Author

Fil commented Dec 7, 2024

I'm not sure what to do about

framework/package.json

Lines 132 to 133 in 8efdcf4

"react": "^18.2.0",
"react-dom": "^18.2.0",

ref. #1229

return (
name === "react" ||
name === "react-dom" ||
name === "react-dom/client" ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The /client would never be part of the name; it’s the path.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true—I shouldn't have commited that part, it is for node and … I haven't found how to make it work (at all)

@Fil Fil closed this Dec 9, 2024
@Fil Fil deleted the fil/react-19 branch December 9, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Framework v1.13 building a broken version of React 19
2 participants