You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pnpm overwrites allow me to use remix with React v18 while a legacy React v17 app lives in the same pnpm workspace.
Actual Behavior
When I run the pnpm run dev command on the remix app I get the following error:
✘ [ERROR] Could not resolve "react-dom/client"
../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@remix-run/dev/dist/config/defaults/entry.dev.ts:9:9:
9 │ import("react-dom/client");
╵ ~~~~~~~~~~~~~~~~~~
You can mark the path "react-dom/client" as external to exclude it from the bundle, which will remove this error. You can also add ".catch()" here to handle this failure at run-time instead of bundle-time.
My best guess is the dev entry file is attempting to use React v17 and can't resolve the react-dom/client module. If I open that file in my editor, the type definition resolves to React v18 so it's unclear how to debug any future.
p.s. I've had it occasionally work successfully but am not able to recreate it on my team member's Window's machine (I'm on macOS) and if I reinstall my node_modules it begins to not work again.
The text was updated successfully, but these errors were encountered:
What version of Remix are you using?
1.17.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
v17
appHere are my
.npmrc
settingsExpected Behavior
The pnpm overwrites allow me to use remix with React v18 while a legacy React v17 app lives in the same pnpm workspace.
Actual Behavior
When I run the
pnpm run dev
command on the remix app I get the following error:My best guess is the dev entry file is attempting to use React v17 and can't resolve the
react-dom/client
module. If I open that file in my editor, the type definition resolves to React v18 so it's unclear how to debug any future.p.s. I've had it occasionally work successfully but am not able to recreate it on my team member's Window's machine (I'm on macOS) and if I reinstall my node_modules it begins to not work again.
The text was updated successfully, but these errors were encountered: