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

chore(gatsby): Unpin @reach/router version with latest release #21171

Merged
merged 3 commits into from
Feb 10, 2020

Conversation

blainekasten
Copy link
Contributor

Description

@reach/router published a 1.3.1 fixing the issue that was causing gatsby sites to not navigate correctly. This updates and unpin's the version. I've tested this manually and am hoping that our automated tests will catch anything else.

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woah that was quick!

Thanks @blainekasten 🙌

@sidharthachatterjee sidharthachatterjee added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Feb 3, 2020
@sidharthachatterjee
Copy link
Contributor

Looks like snapshots are failing because the role=\"group\" is gone. @madalynrose should be able to add more context of if that's a good thing or bad!

@blainekasten
Copy link
Contributor Author

Related commit and change: reach/router@edea55d#diff-e7c4a8f76dc66da880856189f69b846cR22

Would love to understand more about this.. Feels like it might be the wrong approach

@trevorblades
Copy link
Contributor

@blainekasten I just pushed a commit that removes role=\\"group\\" from the failing snapshots. This should make sense since the new version of @reach/router doesn't add this tag any more.

@trevorblades
Copy link
Contributor

trevorblades commented Feb 9, 2020

Now the e2e test for the development runtime is failing with Error: Cannot find module 'isomorphic-fetch'. I suspect this is unrelated to this change since @reach/router doesn't use this module, however I don't see other PRs failing with this error. I'll do some more digging later.

This seems to be related to isomorphic-fetch being removed from the lockfile. @reach/router upgraded create-react-context to 0.3.0, which removes the fbjs dependency, which in turn had a dependency on isomorphic-fetch.

There was an e2e test that imported isomorphic-fetch but it never explicitly defined the module as a dependency, but since it was a distant dependency of @reach/router<1.3.1 the test worked anyway. 70897ae adds isomorphic-fetch as a dependency in that test's package.json, hopefully addressing the issue!

@trevorblades
Copy link
Contributor

trevorblades commented Feb 10, 2020

Everything is passing now, but the Gatsby Build step has been in progress for the last >1 hour. Is this typical? @gatsbyjs/core

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense! Thanks @trevorblades and @blainekasten 🥇

@sidharthachatterjee sidharthachatterjee merged commit ccec9d2 into master Feb 10, 2020
@sidharthachatterjee sidharthachatterjee deleted the fix/update-reach-router-pin branch February 10, 2020 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants