I'm currently updating my Angular 9 app to Angular 10 and encountering this error:
> Removing "Solution Style" TypeScript configuration file support.
× Migration failed: Failed to parse "tsconfig.json" as JSON AST Object. PropertyNameExpected at location: 571.
See "C:\Users\F11K\AppData\Local\Temp\ng-T8Bgiu\angular-errors.log" for further details.
Here is the detailed content from the log file:
[error] Error: Failed to parse "tsconfig.json" as JSON AST Object. PropertyNameExpected at location: 571.
.... (Additional error message lines)
I reviewed the tsconfig.json
file and made manual adjustments, changing "module": "esnext"
to "module": "es2020"
, but it did not resolve the issue.
The log provided is confusing as it does not pinpoint the exact location of the error. Can someone please assist me in resolving this? Thank you.
Content of tsconfig.json
:
{
"compileOnSave": false,
"compilerOptions": {
"downlevelIteration": true,
"incremental": true,
"tsBuildInfoFile": ".tsbuildinfo",
"module": "es2020",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types",
"tests"
],
"lib": [
"es2018",
"dom"
],
"baseUrl": "src",
}
}