Missing app.json file

when i try to run my project i see this error

Error: Missing app.json. See https://docs.expo.io/
1:17:46 AM
Couldn’t start project. Please fix the errors and restart the project.
1:17:46 AM
Error: Missing app.json. See https://docs.expo.io/

I have converted my project to expo and it does have app.json file

whats the error now?

Hi! Do you also have an exp.json file in your project? Our tools don’t have very good error messages right now if you have both.

10:41:35 PM
Error: Missing app.json. See https://docs.expo.io/
10:41:36 PM
Error: Missing app.json. See https://docs.expo.io/
10:41:36 PM
Couldn’t start project. Please fix the errors and restart the project.

hey, I experience the same Issue please help me

What’s the proper fix when both are present?

The same keys that are under the expo key in app.json can be used directly in app.json, so you generally just want to merge the two files manually and delete one of them.

I just ran into this issue too and can happily report that the removal of app.json resulted in my newly-converted Expo project being built successfully by the XDE.

I thought it would have been nice if this requirement had been explicitly called out in the Next Steps document producted by exp convert. Thus, I created a Pull Request to add this very note into Next Steps. @dikaiosune perhaps can you review this PR? Thank you.

The expo XDK looks for the expo SDK version in the app.json file. Thus, your app.json should look something like :

{
  "name": "MyAPP",
  "displayName": "MyAPP",
  "expo": {
  "sdkVersion": "18.0.0"
 }
}

Replace the “18.0.0” with your SDK version. Such error emerges when you create the app using

react-native init

instead of

create-react-native-app

I perceive this as one of the reasons. There may be more such explanations to such occurrences.Happy coding!

1 Like

exp start
[exp] exp may have exited improperly. Proceeding, but you should check for orphaned processes.
[exp] Using project at D:\sohan\ReactNativeApps\Sales Management
[exp] Error: Missing app.json. See https://docs.expo.io/
[exp] Couldn’t start project. Please fix the errors and restart the project.
[exp] Set EXPO_DEBUG=true in your env to view the stack trace.

I am getting this error, this used to work fine till 2-3 days back and suddenly started getting this error. app.json file is there, deleted and recreated the file. Open XDE in admin mode, nothing is working. Why suddenly I am getting this error.

09:57:07 [exp] Error: Missing app.json. See https://docs.expo.io/
09:57:07 [exp] Cannot read property ‘isDetached’ of null
09:57:07 [exp] TypeError: Cannot read property ‘isDetached’ of null
at BaseBuilder._callee2$ (C:\Users\ville\Projects\expo\universe\dev\exp\src\commands\build\BaseBuilder.js:56:9)
at tryCatch (C:\Users\paria4ins\AppData\Roaming\npm\node_modules\exp\node_modules\regenerator-runtime\runtime.js:62:40)
at Generator.invoke [as _invoke] (C:\Users\paria4ins\AppData\Roaming\npm\node_modules\exp\node_modules\regenerator-runtime\runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (C:\Users\paria4ins\AppData\Roaming\npm\node_modules\exp\node_modules\regenerator-runtime\runtime.js:114:21)
at step (C:\Users\paria4ins\AppData\Roaming\npm\node_modules\exp\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
at C:\Users\paria4ins\AppData\Roaming\npm\node_modules\exp\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13
at

I found the problem. there was an error in app.json file. Some how one of the comma “,” was deleted and app.json file got invalid. Error was not good so took extra time to figure it out. BUT all is good now.

Thanks ::slight_smile: