I recently updated my WebAPI project to Angular 9 and Typescript 3.8.3, but encountered errors during the build process: https://i.sstatic.net/KRzgU.png
To try and resolve the issue, I executed various commands such as deleting node_modules and running npm install. Eventually, I upgraded to the Angular preview version (10).
Despite these efforts, the errors persist and I'm unsure of the next steps to take in order to troubleshoot and fix them.
Here is a snippet from my tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"module": "es2020",
"moduleResolution": "node",
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}
Any insights into what might be causing this issue?
EDIT I decided to downgrade back to Angular version 9, deleted node_modules again, and ran npm i command. However, the errors still persist. Below is an excerpt from my current package.json file:
{
"name": "score-app",
...
}
The errors remain consistent, even after reverting to the previous Angular version: https://i.sstatic.net/oPiyU.png