-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
[React 19] : npm install react -- missing umd module #31867
Comments
If you need to use React in a UMD-compatible environment, you can consider using an older version of React that still includes the umd folder. Alternatively, you can explore other options, such as using a bundler like Webpack or Rollup to create a UMD-compatible bundle @Faim00 |
https://unpkg.com/react-umd/dist/react.umd.js I'm building this with rspack But still a feature request for adding official UMD build back, since if react not providing UMD build, UI libraries will follow not providing UMD build. (e.g mui) |
This is expected, see here: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#umd-builds-removed. |
The issue with this is ReactDomClient exporting Edit: with some more tinkering I've reduced the built size to the expected This can be built by installing the dependencies and then |
UMD folder missing in React 19+ installation via npm
After installing React version 19.x.x using npm, the umd folder (which typically contains files like react.development.js and react.production.min.js) is missing from node_modules/react. These files are essential for UMD builds and are expected to be included in the package as per React's documentation. The same issue is observed for react-dom.
The text was updated successfully, but these errors were encountered: