title: Metro bundler: Error: EISDIR: illegal operation on a directory, read
body: <p>When I reload my bundle this exception is uncaught:</p>
  <pre><code>Error: EISDIR: illegal operation on a directory, read
      at Object.readSync (fs.js:592:3)
      at tryReadSync (fs.js:366:20)
      at Object.readFileSync (fs.js:403:19)
      at UnableToResolveError.buildCodeFrameMessage (/home/brady/obs-websocket-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:347:17)
      at new UnableToResolveError (/home/brady/obs-websocket-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:333:35)
      at ModuleResolver.resolveDependency (/home/brady/obs-websocket-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:211:15)
      at DependencyGraph.resolveDependency (/home/brady/obs-websocket-app/node_modules/metro/src/node-haste/DependencyGraph.js:413:43)
      at /home/brady/obs-websocket-app/node_modules/metro/src/lib/transformHelpers.js:317:42
      at /home/brady/obs-websocket-app/node_modules/metro/src/Server.js:1471:14
      at Generator.next (&lt;anonymous&gt;)
  </code></pre>
  <p>My <code>package.json</code></p>
  <pre><code>{
    &quot;main&quot;: &quot;src/index.js&quot;,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;react-native run-android&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;web&quot;: &quot;expo start --web&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@types/node&quot;: &quot;^14.14.35&quot;,
      &quot;events&quot;: &quot;^3.3.0&quot;,
      &quot;expo&quot;: &quot;~40.0.0&quot;,
      &quot;expo-splash-screen&quot;: &quot;~0.8.0&quot;,
      &quot;expo-updates&quot;: &quot;~0.4.0&quot;,
      &quot;obs-websocket-js&quot;: &quot;^4.0.2&quot;,
      &quot;react&quot;: &quot;16.13.1&quot;,
      &quot;react-dom&quot;: &quot;16.13.1&quot;,
      &quot;react-native&quot;: &quot;~0.64.0&quot;,
      &quot;react-native-elements&quot;: &quot;^3.3.2&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;~1.8.0&quot;,
      &quot;react-native-reanimated&quot;: &quot;~1.13.0&quot;,
      &quot;react-native-screens&quot;: &quot;~2.15.0&quot;,
      &quot;react-native-unimodules&quot;: &quot;~0.12.0&quot;,
      &quot;react-native-web&quot;: &quot;~0.13.12&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;~7.9.0&quot;,
      &quot;@types/react&quot;: &quot;~16.9.35&quot;,
      &quot;@types/react-dom&quot;: &quot;~16.9.8&quot;,
      &quot;@types/react-native&quot;: &quot;~0.63.2&quot;,
      &quot;babel-preset-expo&quot;: &quot;~8.3.0&quot;,
      &quot;jest-expo&quot;: &quot;~40.0.0&quot;,
      &quot;typescript&quot;: &quot;~4.0.0&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>