Reputation: 672
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.
Here is the jsconfig.json file
Folder structure
Can anyone help me with this?
Thanks, Prakhil
Upvotes: 6
Views: 2439
Reputation: 19
I had a similar error and solved it by changing the extension of the jsconfig.json file to jsconfig.jsonc
Upvotes: 1
Reputation: 6544
Open the settings.json file, add the below line and then save.
"json.schemas": [
{
"$schema": "https://json.schemastore.org/jsconfig"
}
]
Upvotes: 12