unable to resolve module react/lib/ReactPropTypes
来源:1-4 项目结构介绍
大苗子
2017-06-19
我已经删除了 node_modules然后重新npm install
我的pkg.json文件
{ "name": "ReactNativeWeb", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "babel-core": "^6.25.0", "babel-loader": "^7.0.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "react": "^16.0.0-alpha.6", "react-dom": "^15.6.1", "react-native": "^0.44.0", "react-native-web": "0.0.103", "webpack": "^2.6.1" }, "devDependencies": { "babel-jest": "20.0.3", "babel-preset-react-native": "2.0.0", "jest": "20.0.4", "react-test-renderer": "^16.0.0-alpha.6", "webpack-dev-server": "^2.4.5" }, "jest": { "preset": "react-native" } }
参考https://stackoverflow.com/questions/43798359/react-native-dev-server-returned-500
package.json文件都一致了。
还是报错unable to resolve module react/lib/ReactPropTypes
写回答
1回答
-
从截图上看是无法启动rn服务报错,尝试卸载Watchman重新装一下,再试一下
012017-06-27
相似问题