question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why does react-dates need @babel/runtime and react-with-direction?

See original GitHub issue

react-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:open
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Nov 7, 2019

It still needs to always be installed, no matter what.

0reactions
daviddelusenetcommented, Nov 7, 2019

Thanks, will add them as peer dependencies!

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 didn’t encounter yet.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found