ENOENT: no such file or directory, chdir

Author: kirill-konshinCreated Aug 10, 2019Updated Mar 21, 2020
Labelsbug

Bug Report

$ react-native-macos run-macos
...
    export SOURCE_ROOT=/Users/xxx/mac/macos
    export SRCROOT=/Users/xxx/mac/macos
...
ENOENT: no such file or directory, chdir '/Users/xxx/mac/macos' -> 'macos'

The app itself works... the build exits with error though.

Folder structure:

  • mac (project root)
    • macos
      • build
      • mac
      • mac.xcodeproj
    • node_modules
    • rn-cli.config.js

To Reproduce

Install from scratch as per readme. Then run react-native-macos run-macos.

  • macOS v10.14.6
  • react-native-macos v0.19.3