-
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
Nested dependency calling soon to be deprecated componentWillMount method #17865
Comments
So digging around with this, it's a issue with a nested dependency. The current version of react-helmet we use for the SEO component has a dependency of react-side-effect. helmet is using v1 of that dep while v2 of the dep has come out and switched from For the upstream issue: nfl/react-helmet#413 |
Yes what @lannonbr said until the Helmet / SEO component can get fixed (ill take a look into this) the best to do for now is just in case run |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
what conclusion for solve this problem ? im already type
but warning still showing |
Repost same question: 'what conclusion for solve this problem ?' |
Can we get an update on what the resolve is here. Anyone have a resolve on this? |
Updating react-side-effect did it for me.
Obviously this isn't an ideal solution since deleting node_modules and reinstalling dependencies or creating a new Gatsby Starter will have the same react-helmet that comes with react-side-effect@1.1.0 and thus the warning will come back. Update: Seems like somebody was working on a fix, but it failed in TravisCI: nfl/react-helmet#472 ... So close, yet so far. |
Could we get an status update? |
This is not a gatsby issue, rather it is a react-helmet issue. I worked
around it by swapping out react-helmet and gatsby-plugin-react helmet with
react-helmet-async and gatsby-plugin-react-helmet-async respectively.
Perhaps this change should be made in gatsby since react-helmet appears to
be no longer maintained?
…On Wed, Nov 27, 2019, 7:37 AM Remzi Cavdar ***@***.***> wrote:
Could we get an status update?
I'm worried.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#17865?email_source=notifications&email_token=AAXLHXSNIGSQ3BEIKPHAVRTQV2HZZA5CNFSM4I2JXW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFJ4LYQ#issuecomment-559138274>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXLHXX5O3HOYYHZMXRARH3QV2HZZANCNFSM4I2JXW2Q>
.
|
@apolopena I also think Gatsby needs to swap out for react helmet async > https://github.com/staylor/react-helmet-async The original React Helmet is not actively maintained. |
I would also like a status update thanks |
Yeah, as @Remzi1993 wrote, using the async version is the way to go. |
To fix this warning temporarily I did:
This is basically a migration to gatsby-plugin-react-helmet-async following the suggestions above. Other references: |
Thanks @wlwl2 and @tujoworker those instructions worked great for me. |
Hi, we don't use react-helmet internally in our packages, we could update our docs to resemble react-helmet-async instead. What do you think of that? |
The Also, the API will be more like the The main difference between them is the asynchronous possibilities server side. Overall, difficult to get the right answer on your question, @wardpeet |
If you're using This fixed the issue for me. There is a breaking change with v6 -- you will need to change your Helmet imports to |
We've made a upgrade to react-helmet 6 beta More context: gatsbyjs/gatsby#17865 (comment)
This is now partially resolved as react-helmet 6.0.0 is stable and gatsby-plugin-react-helmet 3.2.2 supports this new version of React Helmet. That said, given the new version of React Helmet is a major update, Renovate won't update the default starter for this as it only updates minor and patch releases. Is anyone willing to push a PR to fix this and then close this issue? |
v5 caused our tests to warn about deprecated componentWillMount method. see gatsbyjs/gatsby#17865
Description
In my project I see this error after updating. I guess this will be fixed in the next release because react deprecated it?
Steps to reproduce
Use
gatsby-starter-default
Expected result
...
Actual result
Environment
The text was updated successfully, but these errors were encountered: