Error: Problem validating fields in app.json
See original GitHub issueActual Behavior
I got the following message when starting up my first project:
Starting packager...
***ERROR STARTING PACKAGER***
Error: Problem validating fields in app.json. See https://docs.expo.io/versions/v25.0.0/guides/configuration.html.
• Field: slug - 'slug' should match pattern "^[a-zA-Z0-9\-]+$".
Packager started!
Steps to Reproduce
I just updated my node to version 9.5.0 And wanted to try my hand at using create-react-native-app
- Installed node 9.5.0 using homebrew
- installed create-react-native-app using
npm install -g create-react-native-app
- created my app within a folder using
create-react-native-app project_name
- cd into the folder and used
npm start
Expected Behavior
Is it necessary to use yarn? I’ve not used it before but notice lots of the help that was output was saying to use yarn start
? Is this actually causing me an issue or is this error unimportant?
I apologize if I’m not posting in the right place in any way. I’m newer to online community as a whole as I’m beginning my professional exploration of programming. If I am in error please accept my apologies and if possible point me somewhere I should be! I landed here after searching for my issue and finding similar posts here, but none identical (that I could find).
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
1 - Stack Overflow
Issue is when I run expo build:ios, it's returning following error Problem validating fields in app.json. See https://docs.expo.io/workflow/ ...
Read more >Having issue with app.json after upgrading expo app in ...
Error : Problem validating fields in app.json. See Configuration with app.json / app.config.js - Expo Documentation
Read more >Search - appsloveworld.com
[Solved]-Error: Problem validating fields in app.json. Learn https://docs.expo.dev/workflow/configuration/ • Field: android.permissions[4] - should be string- ...
Read more >Prepare your Expo build by configuring app.json file - Boostrand
Please ensure that all values you changed are within double quotes as their absence would return an error and the app won't start....
Read more >React native app build for Android and iOS - Developers Zone
ERROR! “expo” is not recognized · Error: Problem validating fields in app.json · ERROR! connect ECONNREFUSED 127.0.0.1:19001 · ERROR! write ECONNRESET.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just ran into this problem. It’s because the project name has the underscore. Doesn’t comply with the fields pattern. • Field: slug - ‘slug’ should match pattern “^[a-zA-Z0-9-]+$”.
Hey @prodeniser - I’m not sure why that error is occurring. I’m newer to Expo. Can you add this to you
app.json
and see if your build works?app.json: