I'm writing a manifest.json
as instructed in the google chrome extensions- getting started and the manifest is working fine, but on vscode I'm getting the following error :
As said, it's working just fine despite of this warning, but I want it gone. Is there a way to cancel this error? Or, of course, is there a way to correct my code so it will not show warnings?
Thanks
I had the same problem. This is caused by a VSCode Extension that is performing linting/providing validation. You will have to disable them one-by-one until you find the offending plugin. However the first place to start is Angular Snippets by John Papa. That was the plugin that was causing this error for me. Angular projects use manifest.json too like Chrome extensions do. Their schemas are inconsistent. You can disable the Plugin for the workspace that contains your Chrome Extension.
That way you keep the cool Angular Snippets for other projects but disable for your Chrome Extension,
Before disable. Notice the Problems in the workspace.
Then choose Disable (Workspace)
Then problem is gone.
(Separate Pro tip: Add json.schemas element to your settings.json for the vscode project to validate your manifest.json, like so.
"json.schemas": [{
"fileMatch": ["../src/manifest.json"],
"url": "http: //json.schemastore.org/chrome-manifest"
}]
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