title: Error: Unable to resolve module `buffer` React Native
body: <p>I am getting an error when I build my project on Android</p>
  
  <blockquote>
    <blockquote>
      <p>error: bundling failed: Error: Unable to resolve module <code>buffer</code> from <code>E:\SUNNYCLOCK-MOBILE\node_modules\safe-buffer\index.js</code>: Module
      <code>buffer</code> does not exist in the Haste module map</p>
    </blockquote>
    
    <p>This might be related to
    <a href="https://github.com/facebook/react-native/issues/4968" rel="noreferrer">https://github.com/facebook/react-native/issues/4968</a> To resolve try
    the following:
      1. Clear watchman watches: <code>watchman watch-del-all</code>.
      2. Delete the <code>node_modules</code> folder: <code>rm -rf node_modules &amp;&amp; npm install</code>.
      3. Reset Metro Bundler cache: <code>rm -rf /tmp/metro-bundler-cache-*</code> or <code>npm start -- --reset-cache</code>.  4. Remove haste cache: <code>rm -rf
    /tmp/haste-map-react-native-packager-*</code>.
        at ModuleResolver.resolveDependency (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:161:1460)
        at ResolutionRequest.resolveDependency (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:91:16)
        at DependencyGraph.resolveDependency (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\node-haste\DependencyGraph.js:272:4579)
        at dependencies.map.relativePath (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\DeltaBundler\traverseDependencies.js:376:19)
        at Array.map ()
        at resolveDependencies (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\DeltaBundler\traverseDependencies.js:374:16)
        at E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\DeltaBundler\traverseDependencies.js:212:33
        at Generator.next ()
        at step (E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\DeltaBundler\traverseDependencies.js:297:313)
        at E:\SUNNYCLOCK-MOBILE\node_modules\metro\src\DeltaBundler\traverseDependencies.js:297:473
    BUNDLE  [android, dev] ./index.js ▓▓▓▓▓▓▓▓░░░░░░░░ 51.9% (813/1143),
    failed.</p>
  </blockquote>
  
  <p>my React native info is</p>
  
  <pre><code>Environment:
    OS: Windows 10
    Node: 8.9.1
    Yarn: 1.7.0
    npm: 4.6.1
    Watchman: Not Found
    Xcode: N/A
    Android Studio: Not Found
  
  Packages: (wanted =&gt; installed)
    react: 16.3.1 =&gt; 16.3.1
    react-native: 0.55.4 =&gt; 0.55.4
  </code></pre>
  
  <p>How can I solve this issue</p>