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
The jsconfig. json file specifies the root files and the options for the features provided by the JavaScript language service.
Shift + CMD + P. Type "settings" Click on "Preferences: Open Settings (JSON)"
The tsconfig.json file specifies the root files and the compiler options required to compile the project. JavaScript projects can use a jsconfig.json file instead, which acts almost the same but has some JavaScript-related compiler flags enabled by default.
Open the settings.json file, add the below line and then save.
"json.schemas": [
{
"$schema": "https://json.schemastore.org/jsconfig"
}
]
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