So I was working on a project and today I saw an error about VScode being unable to resolve package.json schema:
CSS contributions to package.json
Problems loading reference 'vscode://schemas/settings/configurationDefaults': Unable to load schema from 'vscode://schemas/settings/configurationDefaults': cannot open vscode://schemas/settings/configurationDefaults. Detail: Unable to resolve text model content for resource vscode://schemas/settings/configurationDefaults.
It is somewhat similar to file: 'package.json' severity: 'Warning' message: 'Problems loading reference '': Unable to load schema from '': Unable to to connect to BUT the issue is my error is about the local file. I'm wondering why this happened and how I can "undo" this. Some answers revolve around network settings and the one from form linked question suggests adding a schema manually to settings, but I'm not sure why I would have to do that, since it was working fine before.
I can not pinpoint any specific activity before this error appeared. Any ideas on what could be the cause?
At wits end - I opened the vscode Settings Editor. In the Workspace tab I opened Workbench, and under that selected Settings Editor. In there I found an empty checkbox beside Open Default Settings and checked it. The error went away. I have no idea why, but it seems happier now.
Problems loading reference 'https://json.schemastore.org/package': Unable to load schema
step1: go to setting
step2: search (json)
step3: enable (JSON>schema download:Enable)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With