React Native Ios Error - ENOENT: no such file or directory, uv_cwd (null))

user10034296 picture user10034296 · Jul 29, 2018 · Viewed 11.8k times · Source

I get this error when running a new react native project. There is no error with the default starter code, but if a change even a letter of the starter text, I get this error.

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(/Users/Pandey/Final/App.js: ENOENT: no such file or directory, uv_cwd (null))

Answer

Pukar Sharma picture Pukar Sharma · Jul 30, 2018

I had the same issue while building a node module and trying that in the test app. I solved it by closing and restarting the metro bundler.

The other methods I tried (but did not work for me):

  1. react-native upgrade
  2. unlink and link the module
  3. uninstalling the package and reinstalling.

Hope it was helpful! Cheers!