React-hot-loader: react-

后端 未结 6 586
长发绾君心
长发绾君心 2021-02-01 13:14

I updated some npm packages in my Gatsby project and now I\'m seeing this warning in console:

React-hot-loader: react-

6条回答
  •  执念已碎
    2021-02-01 13:16

    Update late 2020

    in step 1, you should run it as follow:

    npm i @hot-loader/react-dom@YOUR_REACT_VERSION
    

    because gatsby uses react version ^16.12.0, and running the command above without specifying react version with install ^17.0.1 which is not compatible with the ^16.x version.

提交回复
热议问题