I have a project in angular that I just updated from v14 to v17.
After the update everything compiles and builds, but opening ts files in editor show a lot of “Cannot find module”:
I guess there’s something wrong with intellisense or typescript, but I can’t figure out what.
This is my tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"declaration": false,
"experimentalDecorators": true,
"lib": [
"es2020",
"dom"
],
"module": "es2020",
"moduleResolution": "node",
"outDir": "./dist/out-tsc",
"resolveJsonModule": true,
"sourceMap": true,
"target": "es2020",
"typeRoots": [
"node_modules/@types"
]
}
}