Several JSON Schemas mapped to this file: system scheme 'schema.json'; system schema 'packageJsonSchema.json'
Hi -
I'm getting the following warning message on my package.json file, but haven't been able to work out how to resolve this.
Several JSON Schemas mapped to this file: system scheme 'schema.json'; system schema 'packageJsonSchema.json'
When I click on the 'Edit JSON Schema Mappings'. link next to the warning message a new dialogue box opens up asking me to add a JSON schema file and configure its usage. The dialogue box is blank, with no sign of the two schemas mentioned in the warning message. When I add in a schema as per this https://youtrack.jetbrains.com/issue/WEB-22082 the new schema will be listed in the error message along with the other two already mentioned above, but the error message still continues and I can't track down the other two schemas.
Another issue (which I mention as it's perhaps related) is that in my .js file there are a few references to JSON values have a warning 'Unresolved Variable'.
Any help much appreciated.
Disclaimer: I'm very new to WebStorm and still trying to get the hang of the overall set up.
Many thanks
Please sign in to leave a comment.
Do you have any custom plugins installed? please provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files).
Note: please don't paste it here, put it on some file server and provide a link
Many thanks, Elena.
The log can be found at the link below:
https://drive.google.com/open?id=0BzgOb8dbfAOyVU5SclJxSTJ0TTg
The only thing I've added to WebStorm since downloading is the Material theme.
Regards, Chris
Strange indeed... What file type is `package.json` associated with? Please attach a screenshot of Preferences | Languages & Frameworks | Schemas and DTDs | JSON Schema page plus ~/Library/PreferencesWebStorm2017.1/options/filetypes.xml
Thanks Elena. Screenshots below. I'm nervous for that moment when you tell me I've done something really daft...
You have assigned `*.json` extension to JSON Schema file type - this is the issue.
Please open Preferences | Editor | File types, remove `*.json` pattern from JSON Schema file type and assign it to JSON type instead