title: react native sudden Unable to resolve module `fs` error
body: <p>I got a sudden error that the module 'fs' is unable to resolve. But I have not used this module nor changed anything. My App suddenly returns this error while starting. </p>
  
  <blockquote>
    <p>error: bundling failed: Error: Unable to resolve module <code>fs</code> from
    <code>/Path/to/Project/node_modules/handlebars/lib/index.js</code>: Module <code>fs</code>
    does not exist in the Haste module map</p>
    
    <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:</p>
    
    <ol>
    <li>Clear watchman watches: <code>watchman watch-del-all</code>.</li>
    <li>Delete the <code>node_modules</code> folder: <code>rm -rf node_modules &amp;&amp; npm install</code>.</li>
    <li>Reset Metro Bundler cache: <code>rm -rf /tmp/metro-bundler-cache-*</code> or <code>npm start -- --reset-cache</code>.</li>
    <li>Remove haste cache: <code>rm -rf /tmp/haste-map-react-native-packager-*</code>.</li>
    </ol>
  </blockquote>
  
  <p>I already tried the four steps to resolve, several times but nothing helped. 
  Any ideas what could be wrong?</p>