facebook/react

[React 19] : npm install react -- missing umd module

Faim00 opened this issue · 3 comments

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.

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
https://unpkg.com/react-umd/dist/react-dom.umd.js
https://unpkg.com/react-umd/dist/react-dom-client.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)