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

Unrecognized key(s) in object: '$schema' #1022

Closed
saiichihashimoto opened this issue Aug 12, 2024 · 6 comments · Fixed by #1023
Closed

Unrecognized key(s) in object: '$schema' #1022

saiichihashimoto opened this issue Aug 12, 2024 · 6 comments · Fixed by #1023
Labels
bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation released Verdict: This issue/pull request has been released

Comments

@saiichihashimoto
Copy link

Chromatic CLI v11.6.0
https://www.chromatic.com/docs/cli


✖ Configuration file chromatic.config.json was invalid, please check the allowed keys.

- Unrecognized key(s) in object: '$schema'



→ View the full stacktrace below

If you need help, please chat with us at https://www.chromatic.com/docs/cli for the fastest response.
You can also email the team at [email protected] if chat is not an option.

Please provide us with the above CLI output and the following info:
{
  "timestamp": "2024-08-12T22:31:41.116Z",
  "sessionId": "aae7d813-d95a-414a-8356-8aec5a669236",
  "nodePlatform": "darwin",
  "nodeVersion": "20.16.0",
  "packageName": "chromatic",
  "packageVersion": "11.6.0",
  "flags": {
    "outputDir": [],
    "storybookBuildDir": [],
    "externals": [],
    "onlyStoryFiles": [],
    "onlyStoryNames": [],
    "untraced": [],
    "fileHashing": true,
    "interactive": true,
    "appCode": []
  },
  "errorType": "Error",
  "errorMessage": "✖ Configuration file chromatic.config.json was invalid, please check the allowed keys."
}

Error: ✖ Configuration file chromatic.config.json was invalid, please check the allowed keys.

- Unrecognized key(s) in object: '$schema'
- ```
@saiichihashimoto saiichihashimoto added bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation labels Aug 12, 2024
@cgbl-90
Copy link

cgbl-90 commented Aug 13, 2024

hello @saiichihashimoto, not all options/flags are supported by the schema. Find the list of supported flags here: https://www.chromatic.com/docs/configure/#options Filter by Config File.

@cgbl-90 cgbl-90 closed this as completed Aug 13, 2024
@saiichihashimoto
Copy link
Author

@cgbl-90

https://www.chromatic.com/docs/cli/#chromatic-config-file

The chromatic docs are where I got the $schema key from. So either those docs should be changed or the key should be allowed.

@cgbl-90 cgbl-90 reopened this Aug 13, 2024
@winkerVSbecks
Copy link
Member

@saiichihashimoto this is an oversight on my end. We haven't updated the CLI to allow for the new $schema key. You can remove it to unblock yourself. And I plan to fix that asap.

@ghengeveld
Copy link
Member

🚀 Issue was released in v11.7.1 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label Aug 14, 2024
@ghengeveld
Copy link
Member

🚀 Issue was released in v11.7.1 🚀

1 similar comment
@ghengeveld
Copy link
Member

🚀 Issue was released in v11.7.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants