-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
"*" sub-package dependencies create version-mismatch errors #498
Comments
@schvenk mind testing again with a clean install ( |
Yep—tested again with the same result. (This is with Here's the workaround. In your
I chose my versions based on date—that is, they're versions whose release dates are all around the same time. In our case, we only import Big risk here is later, when we forget about the overrides, and try to upgrade |
Thanks a lot for sharing the overrides, allowing others in the same situation to solve them also! In another thread (related on this mess) someone shared a solution just updating I will try to understand if there is a way to lock versions of sub-packages for specific version of Thanks again! |
Locking sub-packages: is it not enough just to specific specific versions in each of your |
Will investigate on how to do only on specific versions of thanks again! |
I just got burned by this. I'd installed |
mind trying removing your |
I ended up just removing the packages and adding them again, which set all the versions to latest and fixed the problem. |
When
reactour
's various sub-packages include other sub-packages via theirpackage.json
s (e.g.,@reactour/tour
including@reactour/utils
atpackage.json:22
), they set the version to "*". This means, for example, that if you use v2.13.0 of@reactour/tour
, it will still install the latest version of all the other sub-packages.This was an issue for us because we're still on
react-scripts
4, which isn't compatible with the latest versions ofreactour
. (We may have a workaround but that's another story.)But our situation aside, I think this is worth fixing because it opens up the possibility of unknown errors in the future when parts of
reactour
get auto-upgraded in ways that are potentially incompatible.(Until this is fixed,
npm
overrides offer a pretty easy workaround.)The text was updated successfully, but these errors were encountered: