expo eject expoKit got result: undefined

When I typeing

expo eject

and select expokit, the execution is not successful
expo-cli 3.0.9
“expo”: “^34.0.1”,
“react”: “16.8.3”,
“react-axios”: “^2.0.3”,
“react-dom”: “^16.8.6”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz”,

Came across the same issue and after I looked trough expo source code I found out it was an error not being handled properly. In my case the error was thrown because I had an empty temp-ios-directory in the root folder.


I had a quick look at the code and indeed, if there’s no directory called temp-ios-directory then the code will create it and “Download iOS code”. If the directory does not exist, then it will not do the download. Presumably something later assumes the download has happened and crashes because it’s not there.

Given the way the check is done, if there’s a file called temp-ios-directory it will also crash because it assumes that !isDirectory(...) implies that there’s nothing there and it can create the directory. The error would be different in that case, of course.