I updated some npm packages in my Gatsby project and now I\'m seeing this warning in console:
React-hot-loader: react-
You need to add @hot-loader/react-dom to your project based on your ReactJS version, pay attention below command:
yarn add @hot-loader/react-dom@[YOUR_REACT_VERSION]
Then it is needed to add resolve alias for it on your Webpack configuration file:
resolve: {
alias: {
'react-dom': '@hot-loader/react-dom'
}
}
For more information read its docs.