解决方式如下:添加 “'react-hot-loader/patch'”entry: { app: ['babel-polyfill', 'react-hot-loader/patch', './src/index.tsx'] },我的 React的版本 :"^16.3.2" react-hot-loader版本:"^4.2.0"参考链接:https://stackoverflow.com/que....babelrc添加 plugins中添加 "react-hot-loader/babel" 安装:npm install -D @hot-loader/react-dom 然后再webpack.config.js配置:resolve: { alias: { 'react-dom': '@hot-loader/react-dom' } },解决如下的警告:“react-hot-loader.development.js:2319 React-Hot-Loader: react-?-dom patch is not detected. React 16.6+ features may not work.”参考:https://github.com/gaearon/re...
解决方式如下:添加 “'react-hot-loader/patch'”
entry: {
},
我的 React的版本 :"^16.3.2" react-hot-loader版本:"^4.2.0"
参考链接:https://stackoverflow.com/que...
.babelrc添加 plugins中添加 "react-hot-loader/babel"
安装:npm install -D @hot-loader/react-dom 然后再webpack.config.js配置:
resolve: {
},
解决如下的警告:
“react-hot-loader.development.js:2319 React-Hot-Loader: react-?-dom patch is not detected. React 16.6+ features may not work.”
参考:https://github.com/gaearon/re...