Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VScode - Unable to load schema for package.json

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?

like image 639
VivaceNonTroppo Avatar asked Sep 12 '25 08:09

VivaceNonTroppo


2 Answers

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.

like image 54
Marvin Budd Avatar answered Sep 14 '25 22:09

Marvin Budd


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)

like image 34
Ravi Kumar Avatar answered Sep 14 '25 23:09

Ravi Kumar