-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Fix gatsby-plugin-react-helmet for v6.0.0 #10578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for addressing this!
I can't actually seem to get this to successfully build with
I'll investigate this a bit further. |
Ha - would have to change the src/ directory to reflect this new pattern too 🙃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK! Able to validate this finally.
We'll have to make changes to the starters since they'll be incompatible with react-helmet@6 using the default export.
Before we get this merged, we should probably also tweak some documentation. I'll take a look at that and PR to this branch if that's alright!
Holy buckets, @Ehesp — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Hey sorry was in a rush yesterday. Yeah 6.0 is in beta but there was a very annoying issue it fixed. Thanks for sorting 👍 |
## Description In version 6.0.0 of react-helmet, the default export has been removed. There is now only a named export, e.g. ``` import { Helmet } from 'react-helmet'; ``` In v5.x.x, both a default export and named are exported. Change is here: nfl/react-helmet@20ea385#diff-cc54072daf5278847980b841520c8fffL287 This is a backwards compatible change. v5 has an annoying bug (nfl/react-helmet#373) which v6 seems to fix.
Description
In version 6.0.0 of react-helmet, the default export has been removed. There is now only a named export, e.g.
In v5.x.x, both a default export and named are exported. Change is here:
nfl/react-helmet@20ea385#diff-cc54072daf5278847980b841520c8fffL287
This is a backwards compatible change. v5 has an annoying bug (nfl/react-helmet#373) which v6 seems to fix.