`
jsntghf
  • 浏览: 2476354 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Unable to resolve module ReactDefaultPerf from

    博客分类:
  • iOS
阅读更多

package.json信息如下:

"react": "^15.1.0",

"react-native": "^0.26.2"

 

运行后报错如下:

Unable to resolve module ReactDefaultPerf from /Users/Eric/Projects/HRONE/node_modules/react-native/Libraries/react-native/react-native.js: Unable to find this module in its module map or any of the node_modules directories under /Users/node_modules/ReactDefaultPerf and its parent directories

 

This might be related to https://github.com/facebook/react-native/issues/4968

To resolve try the following:

  1. Clear watchman watches: `watchman watch-del-all`.

  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.

  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.

 

解决办法:

"react": "15.0.2",

"react-native": "^0.26.2"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics