Skip to content
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

react-router-dom v4.0.0-beta.7 installs react-router v4.0.0-beta.8 #4674

Closed
peter-mouland opened this issue Mar 9, 2017 · 6 comments
Closed

Comments

@peter-mouland
Copy link

peter-mouland commented Mar 9, 2017

Version

4.0.0-beta.8

Test Case

https://github.com/peter-mouland/react-lego

Steps to reproduce

install react-router-dom v4.0.0-beta-7

now with 4.0.0-beta.7; running npm run test:func fails, it worked previously.
but with 4.0.0-beta.8; running npm run test:func now works

I'm not sure if this is expected, but i fixed my version to beta-7 to prevent further breaking changes affecting my app without me explicitly updating the router. I didn't use a shrinkwrap file which meant the sub-dependencies weren't fixed.

I'm not sure if you'd class this as a bug or not, but if anyone now tries to install beta.7, i won't work as it's incompatible with react-router v4.0.0-beat.8 (which it installs).

might be something to watch out for or be careful of if beta.9 comes out?

@peter-mouland peter-mouland changed the title React Router Dom 4 (beta 7) installs react-router 4 (beta 8) react-router-dom v4 (beta 7) installs react-router v4 (beta 8) Mar 9, 2017
@peter-mouland peter-mouland changed the title react-router-dom v4 (beta 7) installs react-router v4 (beta 8) react-router-dom v4.0.0-beta.7 installs react-router v4.0.0-beta.8 Mar 9, 2017
@timdorr
Copy link
Member

timdorr commented Mar 9, 2017

Dupe of #4656

@timdorr timdorr closed this as completed Mar 9, 2017
@peter-mouland
Copy link
Author

peter-mouland commented Mar 9, 2017

I see that issue #4656 is marked as closed, so i'm not sure why it is still a problem?

I noticed this PR was makred as the fix for it https://github.com/ReactTraining/react-router/pull/4657/files

which was reverted in the subsequent commit : 716d467#diff-b902191df6a4ca44a5991a5035478795

so the latest code introduces the ^ again, does this mean it'll be a problem again in the future?

https://github.com/ReactTraining/react-router/blob/v4/packages/react-router-dom/package.json#L45

@timdorr
Copy link
Member

timdorr commented Mar 9, 2017

We mainly have to wait for lerna/lerna#511, because the thing we need from Lerna only exists as a flag on the CLI right now and that's pretty easy to fat-finger.

And, more confoundingly, #4668 will switch us back to independent mode, where I'm not sure it even manages inter-package versions at all. But we'll also have to wait for that to see how everything fits together.

Regardless, it is beta software, so it's kind of expected to run into breakages like this. This should be a non-issue once we go final and nail everything down.

@pshrmn
Copy link
Contributor

pshrmn commented Mar 9, 2017

Wait until v4.1 drops to merge react-router-redux? 😛

I actually think that independent mode might be beneficial so that changes to react-router-dom or react-router-native don't force a version bump in the other.

@timdorr
Copy link
Member

timdorr commented Mar 9, 2017

Babel is discussing the same thing leading up to their 7.0.0 release. We can watch what they do, since it's the same basic problem, just a couple of orders of magnitude more painful for them to get wrong.

@peter-mouland
Copy link
Author

cool, i'm onboard with the whole beta thing (I started testing v4 out in alpha and enjoyed where and how its changed). It's fine for me, just wanted to raise it as i didn't see a previous issue (obviously i missed the one pointed out!)

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants