title: TypeError: cb.apply is not a function
body: <p>I'm trying to run an existing React Native project that uses Metro Bundler. My operating system is Ubuntu 20.04 and I've tried to run the app both on a physical Android device and on an Android simulator that I created with Android Studio.</p>
  <p>I have successfully cloned the project's repo, installed its dependencies (<code>yarn</code>), built the app (<code>react-native run-android</code>), and opened the app on my phone and simulator. However, running <code>react-native start</code> errors out saying <code>TypeError: cb.apply is not a function</code>. Here is the full information and errors I get when running <code>react-native start</code>:</p>
  <pre><code>$ react-native start
  warn Your project is using deprecated &quot;rnpm&quot; config that will stop working from next release. Please use a &quot;react-native.config.js&quot; file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
  warn The following packages use deprecated &quot;rnpm&quot; config that will stop working from next release:
    - rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob
  Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
  ┌──────────────────────────────────────────────────────────────────────────────┐
  │                                                                              │
  │  Running Metro Bundler on port 8081.                                         │
  │                                                                              │
  │  Keep Metro running while developing on any JS projects. Feel free to        │
  │  close this tab and run your own Metro instance if you prefer.               │
  │                                                                              │
  │  https://github.com/facebook/react-native                                    │
  │                                                                              │
  └──────────────────────────────────────────────────────────────────────────────┘
  
  warn Your project is using deprecated &quot;rnpm&quot; config that will stop working from next release. Please use a &quot;react-native.config.js&quot; file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
  warn The following packages use deprecated &quot;rnpm&quot; config that will stop working from next release:
    - rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob
  Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
  Looking for JS files in
     /home/ggiuffre/Documents/squib/app 
  
  Loading dependency graph, done.
   BUNDLE  [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)/home/ggiuffre/Documents/squib/app/node_modules/@react-native-community/cli/node_modules/graceful-fs/polyfills.js:285
          if (cb) cb.apply(this, arguments)
                     ^
  
  TypeError: cb.apply is not a function
      at /home/ggiuffre/Documents/squib/app/node_modules/@react-native-community/cli/node_modules/graceful-fs/polyfills.js:285:20
      at FSReqCallback.oncomplete (fs.js:169:5)
  </code></pre>
  <p>Installing <code>graceful-fs</code> (as recommended by <a href="https://stackoverflow.com/a/63054816/3272066">another post</a> about the same problem) doesn't change anything, and I still get the same error.</p>
  <p>What could be the issue here? Thanks in advance.</p>