-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
(I tried to find a duplicate issue)
React DOM 19 appears to deprecate hydrate and unmountComponentAtNode, leading to these warnings:
⚠ ./node_modules/react-native-web/dist/exports/render/index.js
Attempted import error: 'hydrate' is not exported from 'react-dom' (imported as 'domLegacyHydrate').
Import trace for requested module:
./node_modules/react-native-web/dist/exports/render/index.js
./node_modules/react-native-web/dist/index.js
./app/styles-provider.tsx
./node_modules/react-native-web/dist/exports/unmountComponentAtNode/index.js
Attempted import error: 'unmountComponentAtNode' is not exported from 'react-dom' (imported as 'unmountComponentAtNode').
Import trace for requested module:
./node_modules/react-native-web/dist/exports/unmountComponentAtNode/index.js
./node_modules/react-native-web/dist/index.jsExpected behavior
Update values to match React DOM 19. I haven't jumped into the code for this yet, I wanted to wait to see if it's a known issue first before digging in or sending a PR.
Steps to reproduce
Install [email protected] in a Next.js app, (with Next.js 15) and yarn add react.
Test case
Happy to provide one if needed, just let me know.
Additional comments
No response