-
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
React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work. #11934
Comments
I can confirm I have also seen this warning. I was also able to reproduce this warning with gatsby-starter-default. |
We are probably missing https://github.com/gaearon/react-hot-loader/tree/7089062eac273832102c074a368d5af27e23e0b0#webpack-plugin It's not a big deal atm because react fire 🔥 is not official yet. Webpack.config is here: |
@wardpeet I replace |
that works as well! 💪 |
@JustFly1984 for example, I use codebase from @kripod . In |
I reproduce this warning with gatsby-starter-default. So, what should we do? Wait for "react fire" to be released? Or replace |
That is completely unrelated to "react fire" and the emoji is confusing. A workaround that can be done locally is to install exports.onCreateWebpackConfig = ({ getConfig, stage }) => {
const config = getConfig()
if (stage.startsWith('develop') && config.resolve) {
config.resolve.alias = {
...config.resolve.alias,
'react-dom': '@hot-loader/react-dom'
}
}
} |
The workaround removes the warning but .. |
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! Thanks for being a part of the Gatsby community! 💪💜 |
not stale! |
I've added it to our roadmap because it might throw new people of which might give them the impression they have done anything wrong. |
Just to be clear, what should we expect from applying the workaround? Will that remove hot reloading like @misterbridge noticed? Has anyone found a workaround that keeps hot reloading working? |
Let me get this fixed asap |
I created a new PR #13713 would be fun if this could get tested on a few repos. |
Also getting this on my WIndows box at work. Will check it out on my personal Macbook box later to see if I get different results. |
Im starting to see this again since updating react to the latest version. |
running: |
or |
Still a relavant fix I need to make on all my gatsby sites to ensure a smoother development process. Otherwise hot reloading does indeed intermittently fail on the localhost develompment environment. |
I'am using Like has anyone solved it? I think this method (aliasing packages) can couse this problem but i'm not 100% sure. |
Is installing `@hot-loader/react-dom" and adding the webpack config to gatsby-node.js a workaround or a permanent solution? If it's permanent, shouldn't this be built into Gatsby? If it's a workaround, what will be the trigger for us to remove it? I'd also like to add that I ran into certain pages simply wouldn't render after updating from Ant Design 4.1.5 to v4.2.0. They refactored the |
thanks its work |
Any news? |
I have to say that this is symptomatic of so much web development these days. A random error caused by a random change with no obvious solution that doesn't involve kicking off some hit and hope fixes that you try just in case they work and not really understanding why they do or don't. Yes, I should get more involved in the repos but hey, I can't even get Gatsby to run without a bunch of random warnings so I would be useless. My 2 cents. |
I come here every time I start a project with: So I'm writing this note for myself, and anyone else who scrolls this far 👋 (Hey future me) Step 1Run this command - But running this alone won't fix the issue:
Step 2Modify
Use the above code over others mentioned here because:
|
you can also use |
you need to add the matched version for react-hot-dom in your package file "@hot-loader/react-dom": "^16.8.6", and in your webpack config, you need to add alias: { 'react-dom': '@hot-loader/react-dom' } |
Would this help discover what you need to do #26927 ? |
@wardpeet - I've just had a run through this, and yeah, very clear. Thank you. Not sure about others, but I discovered it via the console warning... Rather than encountering any failure of functionality. Adding the steps to resolve the issue within the console by specifying the required version to install is perfection 🎉 |
I tried the suggested solution:
but it's not working for me. Any suggestion? λ gatsby info System: UPDATE:
|
Install failed for me, I have to add my current react version. Post from @zaktwist worked (#11934 (comment)) |
It's now January 2021...is this still necessary? |
@devuxer |
We've shipped Gatsby v3 that uses Fast Refresh only: https://www.gatsbyjs.com/docs/reference/release-notes/v3.0#fast-refresh |
Description
After updating all the dependencies of my starter project, I noticed the following message in the browser console after running
gatsby develop
:Steps to reproduce
yarn && yarn develop
Expected result
No warnings should be thrown.
Actual result
A warning is thrown even with a starter project.
Environment
The text was updated successfully, but these errors were encountered: