-
Notifications
You must be signed in to change notification settings - Fork 651
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
fix: adds missing dependency @babel/runtime #507
Conversation
Using yarn with pnp enabled enforces a correct dependency structure. While using any module that has this package as a dependency I get the following error: ``` ERROR in /home/msilva/.cache/yarn/v4/npm-react-transition-group-4.1.0-7b50c0a93a6c127336187252c3c1a70eff3304ce/node_modules/react-transition-group/esm/CSSTransition.js Module not found: Error: Package "[email protected]" (via "/home/msilva/.cache/yarn/v4/npm-react-transition-group-4.1.0-7b50c0a93a6c127336187252c3c1a70eff3304ce/node_modules/react-transition-group/esm/CSSTransition.js") is trying to require the package "@babel/runtime" (via "@babel/runtime/helpers/esm/extends") without it being listed in its dependencies (react, react-dom, dom-helpers, loose-envify, prop-types, react-transition-group) @ /home/msilva/.cache/yarn/v4/npm-react-transition-group-4.1.0-7b50c0a93a6c127336187252c3c1a70eff3304ce/node_modules/react-transition-group/esm/CSSTransition.js 1:0-58 228:43-51 @ /home/msilva/.cache/yarn/v4/npm-react-transition-group-4.1.0-7b50c0a93a6c127336187252c3c1a70eff3304ce/node_modules/react-transition-group/esm/index.js @ /home/msilva/.cache/yarn/v4/npm-@material-ui-core-4.0.2-c7a07c1d1b13b94adf479d7267b51cb682fcb279/node_modules/@material-ui/core/Slide/Slide.js ``` to fix this I added the latest version of @babel/runtime to the dependencies.
I believe this is a bug with our build process right now. The ESM build uses Babel runtime, while the CJS build does not. Can we sync them up? |
Not necessary. Missing dependency is a bug. Need just to add it. |
The issue is that I don't think we're intentionally applying the runtime transform here. We don't do so for the CJS build, so why should we do so for the ESM build? |
To not duplicate babel helpers for each module in this package. ESM thing is used for browsers. Node thing is less important. But we may do that too. |
Ah, I see that the config for the ESM build doesn't exclude runtime. I guess that must be intentional. |
## [4.1.1](v4.1.0...v4.1.1) (2019-06-10) ### Bug Fixes * adds missing dependency [@babel](https://github.com/babel)/runtime ([#507](#507)) ([228bf5f](228bf5f))
🎉 This PR is included in version 4.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [4.1.1](reactjs/react-transition-group@v4.1.0...v4.1.1) (2019-06-10) ### Bug Fixes * adds missing dependency [@babel](https://github.com/babel)/runtime ([#507](reactjs/react-transition-group#507)) ([228bf5f](reactjs/react-transition-group@228bf5f))
## [4.1.1](reactjs/react-transition-group@v4.1.0...v4.1.1) (2019-06-10) ### Bug Fixes * adds missing dependency [@babel](https://github.com/babel)/runtime ([#507](reactjs/react-transition-group#507)) ([228bf5f](reactjs/react-transition-group@228bf5f))
## [4.1.1](reactjs/react-transition-group@v4.1.0...v4.1.1) (2019-06-10) ### Bug Fixes * adds missing dependency [@babel](https://github.com/babel)/runtime ([#507](reactjs/react-transition-group#507)) ([228bf5f](reactjs/react-transition-group@228bf5f))
## [4.1.1](reactjs/react-transition-group@v4.1.0...v4.1.1) (2019-06-10) ### Bug Fixes * adds missing dependency [@babel](https://github.com/babel)/runtime ([#507](reactjs/react-transition-group#507)) ([228bf5f](reactjs/react-transition-group@228bf5f))
Using yarn with pnp enabled enforces a correct dependency structure. While using any module that has this package as a dependency I get the following error:
to fix this I added the latest version of @babel/runtime to the dependencies.