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
React 17 does not have an exports map, this means if you want to use react 17 in an ESM runtime you'll have to import the /server deep import as react-dom/server.js.
We're dropping support for React 17 in Remix v2, so not planning to address this. That said, just because it isn't officially supported doesn't mean it definitely won't work. I wouldn't be surprised if some app/entry.server.tsx could be crafted to get React 17 running
Thanks Pedro. For a little more context on this decision there's a lot of good stuff we'll be bringing into v2 with v3_flags, and we don't want React 17 support making it all very difficult.
What version of Remix are you using?
v1.19.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Change any of the following, and the template runs as expected:
react
andreact-dom
to "^1.18.2"v2_dev
in remix.config.jsI thought it might have been the default entry.server and entry.client, so I went ahead and grabbed the old react17 versions of the entry files, no luck: https://github.com/remix-run/remix/blob/d86cc1ed904ce98a04db3f9048f99ef6e710e9a4/templates/express/app/entry.server.tsx
Expected Behavior
Dev server runs, hmr working as expect (with React 17 caveats).
Actual Behavior
This error seems specific to the React 17 + ESM + v2 Dev Server combination, which results in the following errors:
The text was updated successfully, but these errors were encountered: