-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
dev 1.18.0 error when using React v17 #6710
Comments
Can you try adding a // node_modules/@remix-run/dev/dist/config/defaults/entry.dev.ts
export default () => {
import("react");
import("react/jsx-dev-runtime");
import("react/jsx-runtime");
import("react-dom");
import("react-dom/client").catch();
import("react-refresh/runtime");
import("@remix-run/react");
import("remix:hmr");
}; |
Hey @pcattori, I'm having the same problem and catching the |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.18.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Setup a basic Remix project that uses Remix 1.18.0 and React/React-dom version 17.
Someting like create remix app then downgrade React.
Enable the new HMR dev server in the remix config.
Run
npm run dev
An error occurs:
cc: @pcattori Issue filed as requested on Discord
Expected Behavior
The dev server serves up the local site without errors
Actual Behavior
Error "Could not resolve react-dom/client"
The text was updated successfully, but these errors were encountered: