Closed fedorinoGore closed 3 years ago
tsconfig.extend.json is not valid, please check the syntax
@VyacheslavR could you please give me a hint - what's wrong with tsconfig.extend.json
?
@fedorinoGore, you put commas at the end, if it was js, it would be ok, but in json it is not valid. Here is a valid example:
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@components/*": [
"./components/*"
]
}
}
}
Go to this file path craco-alias/plugin/pre-check/check-config-contents.js and then in the first try and catch add the err property to the string output just do what is says and then it will be correct, or you can put the file as json initially or put it through a JSON parser to check it for errors and then put it in the extend.json
beyond the ending commas, just be aware of removing all comments in the tsconfig.extend.json
as comments are not allowed in the JSON file...
I updated the message to make it easier to find the syntax error.
@katsimoto Thanks!
Im following the readme instructions but constantly having error "Cannot parse tsconfig.extend.json" Option "debug: true" doesn't work, at least I don't see any additional info in the console
Here are my config files: craco.config.js
tsconfig.json
tsconfig.extend.json
Having this deps in package.json: