question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Problem validating fields in app.json

See original GitHub issue

Actual 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

  1. Installed node 9.5.0 using homebrew
  2. installed create-react-native-app using npm install -g create-react-native-app
  3. created my app within a folder using create-react-native-app project_name
  4. 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bnowak008commented, Mar 1, 2018

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-]+$”.

1reaction
iamclaytonraycommented, Feb 26, 2018

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:

{
  "expo": {
    "sdkVersion": "25.0.0",
    "slug": "project_name"
  }
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found