title: TypeError: undefined is not a function, js engine: hermes
body: <p>My React Native (0.66.3) app today pops up an error with a stable code which hasn't had any change for quite some time. It is on macOS Big Sur. Here is the error:</p>
  <pre><code> ERROR  TypeError: undefined is not a function, js engine: hermes
  Error: ENOENT: no such file or directory, open '/Users/macair/Documents/code/js/xyz_app5/http:/localhost:8081/index.bundle?platform=ios&amp;dev=true&amp;minify=false&amp;modulesOnly=false&amp;runModule=true&amp;app=org.reactjs.native.example.xyz-app5'
      at Object.openSync (fs.js:498:3)
      at Object.readFileSync (fs.js:394:35)
      at getCodeFrame (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:919:18)
      at Server._symbolicate (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:992:22)
      at runMicrotasks (&lt;anonymous&gt;)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)
      at async Server._processRequest (/Users/macair/Documents/code/js/xyz_app5/node_modules/metro/src/Server.js:403:7) {
    errno: -2,
    syscall: 'open',
    code: 'ENOENT',
    path: '/Users/macair/Documents/code/js/xyz_app5/http:/localhost:8081/index.bundle?platform=ios&amp;dev=true&amp;minify=false&amp;modulesOnly=false&amp;runModule=true&amp;app=org.reactjs.native.example.xyz-app5'
  }
  </code></pre>
  <p>Here is the error displayed on IOS simulator:</p>
  <p><a href="https://i.stack.imgur.com/8t41y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8t41y.png" alt="enter image description here" /></a></p>
  <p>The error seems related to metro in React Native.</p>