Can't succeed in unexcluding node_modules in WebStorm Node React

53 Views Asked by At

I can't un-exclude node_modules in WebStorm 2018.2.3.

When I click to uncheck excluded nothing happens. I tried restarting my IDE and my laptop but got the same result.

Is there a reason? I found this link (for an older version of WebStorm) but it doesn't work for me: Can't remove node_modules from excluded folders in WebStorm

Uncheck excluded

2

There are 2 best solutions below

0
On BEST ANSWER

Thanks a lot for your answer. I manage to did it's not very proper way : I delete node_modules from my git repo then i push -f to my repo it works but your solution seems better. Unfortunately I've tried to unexclude (as I explained before) in Webstorm preferences but it has no effects. That's why I did that.

1
On

WebStorm auto-excludes node_modules folder from the project for better performance, but it's excluded only partially: direct project dependencies listed in package.json are added to JavaScript libraries for completion/navigation and thus indexed. You can still un-exclude certain folders explicitly by choosing Mark directory as | Not excluded from folder right-click menu in the Project tree on the left. But note that un-excluding the node_modules folder would have negative performance impact. See also WEB-24765