Prakhil Thottipully
Prakhil Thottipully

Reputation: 672

vscode shows typescript related problems in jsconfig.json file

I set up a normal create-react-app project and add jsconfig.json to the root directory. But it shows the error which is typescript related. problems in Vscode terminal Here is the jsconfig.json file

jsconfig.json configurations

Folder structure

enter image description here

Can anyone help me with this?

Thanks, Prakhil

Upvotes: 6

Views: 2439

Answers (2)

kotano
kotano

Reputation: 19

I had a similar error and solved it by changing the extension of the jsconfig.json file to jsconfig.jsonc

Upvotes: 1

Anees Hameed
Anees Hameed

Reputation: 6544

Open the settings.json file, add the below line and then save.

 "json.schemas": [
      { 
        "$schema": "https://json.schemastore.org/jsconfig" 
      }
    ]

enter image description here

Upvotes: 12

Related Questions