-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Installing wrong version of a package when version is specified as asterisk #1785
Comments
Guys, do you have any progress on this issue? In a simple setup with types/react-dom fixed to a specific version and types/react fixed to a specific version as well I'm getting another (latest) version of types/react installed as a sub-dependency into types/react-dom folder, which obviously breaks compilation. |
Upon further examination, it looks like a duplicate of #2763 of sorts |
I'm experiencing the same thing. While #2763 might provide a way to work around it, this still feels like a legitimate bug. You can repro this in a minimal project with the following dependencies:
This results in yarn.lock containing:
|
Even more confusing when
after running
Even major version is the same. Basically every |
… latest version; ref: yarnpkg/yarn#1785
Are there any updates on this? This remains an issue with Yarn Berry. I have a project that is forced to stick with |
have same issue, sad it lives 6 years. Make another example, maybe it will help to solve it: once some package in deps is marked as any package A has dep: "dependencies": {
"@types/react": "*"
}, at that moment in ...
"@types/react@*":
version "18.0.14"
... and there is no way to change this record |
Reporting in almost a year later, having the same issue. |
Do you want to request a feature or report a bug?
I am not sure this is a question or a bug. When using
yarn
in my react-native project I found a behaviour that got me stuck for a couple of hours.react-native-video-player has specified an asterisk as
react-native
version.The rest of my project works on
react-native@^0.36.1
.What is the current behavior?
Babel does not compile and throws one after another an error like the following:
Similar to this case aksonov/react-native-router-flux#960.
yarn is installing and locking the latest version for a
*
(->0.37
) dependency instead of the most updated compatible one (v0.36.1
)If the current behavior is a bug, please provide the steps to reproduce.
Install or create a project using an older than latest react-native version.
Install a dependency that uses
*
as version requirement for react-native.What is the expected behavior?
I believe it should install the most updated compatible version, rather than both the latest and the required.
After all –as stated on npm docs-
Please mention your node.js, yarn and operating system version.
yarn ->
v0.15.1
node ->
v5.10.1
Mac OS X
The text was updated successfully, but these errors were encountered: