gpt4 book ai didi

reactjs - 更新后出错: Cannot resolve module 'react/lib/ReactMount'

转载 作者:行者123 更新时间:2023-12-03 13:16:30 25 4
gpt4 key购买 nike

所以当我开始收到 ReactMount 不在 React/lib/ReactMount 的错误时,我试图将我的 React-Webpack 应用程序放在 Heroku 上。然后我尝试了很多不同的东西,最终尝试使用相同的react-webpack生成器创建一个新项目。现在,即使在本地主机上运行,​​我也会遇到同样的错误,这意味着它一定是由于某处的更新所致,对吗?

有人知道这件事吗?

我有以下依赖项:

 "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

关于reactjs - 更新后出错: Cannot resolve module 'react/lib/ReactMount' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40639228/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com