Visual Studio throwing errors for node_modules that contain a tsconfig.json

Viewed 192

In my project I have a tsconfig.json which sits in the project root. However, Visual Studio is throwing a number of errors about the tsconfig.json found in other packages, like so:

Screenshot of errors in Visual Studio

node_modules is excluded from the project and I don't get these errors when using Visual Studio Code.

2 Answers

You can delete the node_modules folder and rebuild your angular project.

Delete the node_modules

add this to your tsconfig.json

"skipLibCheck": true

then build

Related