node.jsreactjsreact-nativereact-native-ios

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


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))


Solution

  • 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!