---
title: "Unable to resolve module ReactDefaultPerf from"
author: "jsntghf"
date: "2016-06-02T13:04:13Z"
tags: ["iOS"]
categories: ["移动开发"]
slug: "unable-to-resolve-module-reactdefaultperf-from"
draft: false
lastmod: "2016-06-02T13:04:13Z"
id: 2301027
url: "https://eric-gao.iteye.com/blog/2301027"
---

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"