How to fix ,End of file expected error in settings.json file?

4.9k views Asked by At

So I installed the Live sass compiler extension but it was not working. I went to its settings and nothing was there. So I went to its MD file on copied its settings in my settings.json file. But after that, I am getting this error -

This is the code -

    "liveSassCompile.settings.formats":[
 
    {
        "format": "expanded",
        "extensionName": ".css",
        "savePath": null
    },

    {
        "format": "compressed",
        "extensionName": ".min.css",
        "savePath": "/dist/css"
    },

    {
        "format": "compressed",
        "extensionName": ".min.css",
        "savePath": "~/../css/"
    }
]

and this is the error -

End of file expected. jsonc [1, 35]

Also, I am new to stack overflow! So pardon my Naivety.

1

There are 1 answers

12
Jello On

A JSON file must start with array([) or object({). Maybe you should have pasted it inside your file somewhere.

{
  "settings": {
    // maybe somewhere like here
  }
}

enter image description here enter image description here