After I upgraded my project from Angular 9 to Angular 10 the project is showing many errors that I can't resolve like the following
(TS) Cannot find module '@angular/core'.
(TS) Cannot find module '@angular/forms'.
(TS) Cannot use imports, exports, or module augmentations when '--module' is 'none'.
(TS) Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
TS6053 File 'ClientApp/node_modules/-/dist/index.d.ts' not found
The error messages are only shown in visual studio 2019. when I try the application in visual studio code it is working fine.
I have tried many solutions like adding
<TypeScriptExperimentalDecorators>True</TypeScriptExperimentalDecorators> <TypeScriptEmitDecoratorMetadata>True</TypeScriptEmitDecoratorMetadata>
or adding
"baseUrl": "src"
to the tsconfig.json
non of them worked. Did anyone have the same problem?