I have updated angular v10 to v13. Migration is completed without any error but while I'm trying to run ng serve command, I'm getting this compile time error.
tsconfig.ts:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"experimentalDecorators": true,
"noUnusedLocals": true,
"importHelpers": true,
"resolveJsonModule": true,
"target": "es5",
"newLine": "LF",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2019",
"dom",
"esnext.asynciterable"
],
"paths": {
"@angular/*": ["node_modules/@angular/*"],
"rxjs": ["node_modules/rxjs", "node_modules/rxjs"]
},
"baseUrl": "./"
}
}
Error: Left side of comma operator is unused and has no side effects. if (!(0, fs_1.existsSync)(startPath)) {
I tried to make changed in tsconfig by replacing es5 to es6 and es2016 but that dind't work for me. If anyone knows how to resolve this error, that will be helpful for me.