最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jetbrains ide - WebStorm: how to ignore node modules when using 'go to declaration or usages' - Stack Overflow

programmeradmin1浏览0评论

I have recently installed a new version of WebStorm (2024.3.4). I am working on a mono repo in which each package is linked through the node_modules folder. Previously (WebStorm version 2024.1.4), I was able to use the option Go to > Declaration or Usages (Ctrl+B) in the editor, and I would be redirected to the correct piece of code. In the latest version I am redirected to the index.mjs file in the node_modules folder.

This is very annoying behavior, and might be a reason for me to switch to another IDE. If anybody knows how to restore the previous behavior I would be very grateful.

I have checked all my settings, there are no differences between both versions except for any new settings. I am working with TypeScript, Svelte, and SvelteKit. There are no differences in any of the config files.

I have tried exporting and importing the WebStorm settings.

I would have expected WebStorm to automatically exclude node_modules in favor of the code in the packages in the mono-repo.

发布评论

评论列表(0)

  1. 暂无评论