Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I create an app.toml file in an arbitrary folder inside my project, it returns an "expo" is a required property error? #602

Closed
epicwhale opened this issue Apr 21, 2024 · 1 comment
Labels
question schema JSON-schema related issues

Comments

@epicwhale
Copy link

Is there some hardwiring in the VS code extension around 'app.toml' file names? Even a blank app.toml shows the following problem

image

But if i rename it to foo.toml, config.toml or anything else, it goes away.

@panekj
Copy link
Collaborator

panekj commented Apr 21, 2024

Is there some hardwiring in the VS code extension around 'app.toml' file names?

No, but extension tries to guess which kind of file are you trying to edit currently and select best schema for that file to validate.
You can specify custom schema via #:schema directive in file or select proper schema in the bottom right corner of VSCode (it should show up as Expo SDK for app.toml)

Duplicate of #457

@panekj panekj closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
@panekj panekj added schema JSON-schema related issues question labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question schema JSON-schema related issues
Projects
None yet
Development

No branches or pull requests

2 participants