reactjs – 更新后出现错误:无法解析模块“react / lib / ReactMount”

前端之家收集整理的这篇文章主要介绍了reactjs – 更新后出现错误:无法解析模块“react / lib / ReactMount”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
所以当我开始收到ReactMount不在React / lib / ReactMount的错误时,我试图把我的反应webpack应用程序放在Heroku上.然后我尝试了很多不同的东西,最后尝试用相同的反应webpack生成器创建一个新的项目.现在我也遇到了同样的错误,即使在localhost上运行,这意味着它必须由于更新在某个地方,对吗?

有谁知道这个吗?

我有以下依赖关系:

"devDependencies": {
"babel-core": "^6.0.0","babel-eslint": "^6.0.0","babel-loader": "^6.0.0","babel-polyfill": "^6.3.14","babel-preset-es2015": "^6.0.15","babel-preset-react": "^6.0.15","babel-preset-stage-0": "^6.5.0","bower-webpack-plugin": "^0.1.9","chai": "^3.2.0","copyfiles": "^1.0.0","css-loader": "^0.23.0","eslint": "^3.0.0","eslint-loader": "^1.0.0","eslint-plugin-react": "^6.0.0","file-loader": "^0.9.0","glob": "^7.0.0","isparta-instrumenter-loader": "^1.0.0","karma": "^1.0.0","karma-chai": "^0.1.0","karma-coverage": "^1.0.0","karma-mocha": "^1.0.0","karma-mocha-reporter": "^2.0.0","karma-phantomjs-launcher": "^1.0.0","karma-sourcemap-loader": "^0.3.5","karma-webpack": "^1.7.0","minimist": "^1.2.0","mocha": "^3.0.0","null-loader": "^0.1.1","open": "0.0.5","phantomjs-prebuilt": "^2.0.0","react-addons-test-utils": "^15.0.0","react-hot-loader": "^1.2.9","rimraf": "^2.4.3","style-loader": "^0.13.0","url-loader": "^0.5.6","webpack": "^1.12.0","webpack-dev-server": "^1.12.0"


"dependencies": {
"core-js": "^2.0.0","firebase": "^3.5.2","input-moment": "^0.3.0","moment": "^2.15.2","normalize.css": "^4.0.0","react": "^15.0.0","react-bootstrap-datetimepicker": "0.0.22","react-datetimepicker-bootstrap": "^1.1.2","react-dom": "^15.0.0","webpack": "^1.13.3"
看起来你和我在同一条船上.我们都使用旧版本的react-hot-loader更新到3.x版,并进行另一个npm安装.

见 – https://github.com/gaearon/react-hot-loader/issues/417

猜你在找的React相关文章