Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude node_modules from WebStorm code analysis (named 'Problems' on the bottom-left corner)

I am relying on this extensively on my workflow, but for some reasons this feature is now warning me of all the problems coming from node_modules, which obviously I'm not interested in.

enter image description here

How can I make WebStorm analyse my whole project problems without the nodes_modules folder?

like image 400
A Mehmeto Avatar asked Jul 01 '26 12:07

A Mehmeto


1 Answers

This is due to TSC itself reporting errors, and Project Errors within Webstorm just displays them. This is mentioned in the youtrack link below. I was able to remove all of my errors by adding the

{
  "compilerOptions": {
    "skipLibCheck": true
  }
}

option in tsconfig.json; however we decided not to enable that option at this time because if its side effects.

https://youtrack.jetbrains.com/issue/WEB-53460/Errors-from-nodemodules-in-type-script

like image 104
Jonathan Kacprowicz Avatar answered Jul 04 '26 09:07

Jonathan Kacprowicz