Why does react-dates need @babel/runtime and react-with-direction?
See original GitHub issuereact-dates version react-dates@21.2.1
Describe the bug The documentation states that if you run the following command:
(
export PKG=react-dates;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g; s/ *//g' | xargs npm install --save "$PKG"
)
It will result in the following:
npm install --save react-dates moment@>=#.## react@>=#.## react-dom@>=#.##
However, it also installs react-with-direction
and @babel/runtime
as dependencies. Why does this happen? Are these dependencies even needed?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Why does react-dates need @babel/runtime and ... - GitHub
I think @babel/runtime is already installed as a CRA dependency and react-with-direction will probably only be used in certain use cases which I ......
Read more >react-dates-gte-react-17-21.8.0-version-fixed - npm package
A responsive and accessible date range picker component built with React. Fork for React 17 and React 18 with fixed version 2.8.0 For...
Read more >react-dates versions and peer dependencies
Online Peer dependency version tool to search for compatible versions of related NPM packages.
Read more >Babel Roadmap
This is far from being a complete list of all the new features or important changes that we'll bring to Babel, but it's...
Read more >Nodejs build - out of memory - Render community
2". May 14 02:29:43 PM warning " > react-dates@21.8.0" has unmet peer dependency "@babel/runtime@^ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It still needs to always be installed, no matter what.
Thanks, will add them as peer dependencies!
I think
@babel/runtime
is already installed as a CRA dependency andreact-with-direction
will probably only be used in certain use cases which I didn’t encounter yet.