nick
nick

Reputation: 141

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

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.

Upvotes: 4

Views: 2242

Answers (2)

Devendra kumar singh
Devendra kumar singh

Reputation: 21

Delete the node_modules

add this to your tsconfig.json

"skipLibCheck": true

then build

Upvotes: 2

Abdus Salam Azad
Abdus Salam Azad

Reputation: 5502

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

Upvotes: 1

Related Questions