app.json field slug validation: slug' should match pattern

Please provide the following:

  1. SDK Version: 41
  2. Platforms: Android/iOS

I am unable to run the command expo build:android. I’m getting the error:

 • Field: slug - 'slug' should match pattern "^[a-zA-Z0-9_\-]+$".

In my app.json, this is my slug field:

"slug": "viva-mosolo"

The above string seems to satisfy the regex. I don’t understand why I’m getting this error.

I agree that slug does look fine.

Is there any chance you have e.g. an en dash or something instead of a hyphen?

Otherwise is it possible you have the slug at the wrong nesting level in your app.json, such that when expo looks for it it doesn’t find it? Could you post the whole app.json? Obscure or leave out anything you consider sensitive.

Hey @seyaobey, were you able to get this resolved with wodin’s suggestions?

So I just changed the slug to vivamosolo and it worked. I cannot explain why it accepted this format though…

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.