expo build:android Cannot read property 'readConfigJsonAsync' of undefined

I am getting this error, kind of lost on how to solve it. Already tried clearing and re-installing node modules with no luck.

$ EXPO_DEBUG=true expo build:android

Cannot read property 'readConfigJsonAsync' of undefined
TypeError: Cannot read property 'readConfigJsonAsync' of undefined
    at Object.checkSplashScreenImages (/@expo/xdl@56.0.0/src/Android.ts:359:37)
    at AndroidBuilder._callee$ (/expo-cli@3.0.0/src/commands/build/AndroidBuilder.js:27:19)
    at tryCatch (/Users/lfdp/.nvm/versions/node/v8.16.0/lib/node_modules/expo-cli/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/lfdp/.nvm/versions/node/v8.16.0/lib/node_modules/expo-cli/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/lfdp/.nvm/versions/node/v8.16.0/lib/node_modules/expo-cli/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/lfdp/.nvm/versions/node/v8.16.0/lib/node_modules/expo-cli/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/lfdp/.nvm/versions/node/v8.16.0/lib/node_modules/expo-cli/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

expo-cli@3.0.0 is tagged as next and there still might be some issues with it, suggest downgrading to latest (currently 2.21.2)

1 Like

That worked, thank you.