Is there a way to prevent types from specific packages from being used?
To temporarily workaround this issue: https://youtrack.jetbrains.com/issue/WEB-44737,
Is there a way to tell WebStorm to not use types from certain packages in node_modules? Or better, to give priority to build-in types. Especially when DOM and modules types are involved.
Thank you very much.
Please sign in to leave a comment.
>Is there a way to tell WebStorm to not use types from certain packages in node_modules?
yes - just include the packages these files are defined in from indexing (Mark directory as/Excluded in folder right-click menu)
Hi, sorry for my late reply. node_modules is already excluded by default. Still WebStorm is using every type it finds, also types from indirect dependencies, polluting types space.
>node_modules is already excluded by default
yes, it's auto-excluded, but all direct dependencies listed in package.json are added to javascript libraries and thus indexed