title: React Native issue: Module does not exist in the Haste module map
body: <p>I created a native module and created another project to test it locally. </p>
  
  <p>Here are my steps:
  <code>
  cd &lt;Testing project&gt;
  npm install ../&lt;Module project&gt;
  react-native link &lt;module name&gt;
  react-native run-android
  </code></p>
  
  <p>Then I got following error:</p>
  
  <pre><code> error: bundling failed: Error: Unable to resolve module `react-native-helloworld` from `G:\Test\App.js`: Module `react-native-helloworld` does not exist in the Haste module map
  
      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 &amp;&amp; npm install`.
        3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
        4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ztqCb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ztqCb.png" alt="enter image description here"></a></p>
  
  <p>I've searched StackOverflow for the issue, but there's no workable solution. The suggested solution '<strong>clear the cache and reset everything</strong>' cannot work.</p>
  
  <p>However, the module can work if I publish it to <a href="https://www.npmjs.com/" rel="noreferrer">https://www.npmjs.com/</a> and then install it via <code>npm install &lt;module name&gt;</code>.</p>
  
  <p>The only difference is the installing way. </p>