admin管理员组文章数量:1023794
I've installed react-router v6 but WebStorm still use react-router v5 types.
In WebStorm folders: /Webstorm2021.2/javascript/typings/...
has loadsh
, react-dom
, react-router-dom
, styled-ponents
libraries. When I remove those typings folders WebStorm auto creates and downloads those four libraries.
Why does this happens and how to stop this? Or let WebStorm choose the v6 types by default?
I've installed react-router v6 but WebStorm still use react-router v5 types.
In WebStorm folders: /Webstorm2021.2/javascript/typings/...
has loadsh
, react-dom
, react-router-dom
, styled-ponents
libraries. When I remove those typings folders WebStorm auto creates and downloads those four libraries.
Why does this happens and how to stop this? Or let WebStorm choose the v6 types by default?
Share Improve this question edited Nov 22, 2021 at 10:59 LazyOne 166k48 gold badges414 silver badges415 bronze badges asked Nov 22, 2021 at 2:42 伊豆湖卧烟伊豆湖卧烟 934 bronze badges 1-
Experiencing exactly the same problem with typings and
react-router-dom
– Michael W. Czechowski Commented Feb 15, 2022 at 13:01
1 Answer
Reset to default 11The IDE downloads typings for some popular libraries to its configuration folder and uses it to enhance code pletion. You can remove the auto-downloaded typings from your <system directory>/javascript/typings
(https://www.jetbrains./help/webstorm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#system-directory) and then either disable typescript.external.type.definitions
Registry key or remove react-router-dom
(and other stuff you don't like to be downloaded automatically) from typescript.external.type.definitions.packages
key
The Registry can be located via: Help > Find action > type Registry...
I've installed react-router v6 but WebStorm still use react-router v5 types.
In WebStorm folders: /Webstorm2021.2/javascript/typings/...
has loadsh
, react-dom
, react-router-dom
, styled-ponents
libraries. When I remove those typings folders WebStorm auto creates and downloads those four libraries.
Why does this happens and how to stop this? Or let WebStorm choose the v6 types by default?
I've installed react-router v6 but WebStorm still use react-router v5 types.
In WebStorm folders: /Webstorm2021.2/javascript/typings/...
has loadsh
, react-dom
, react-router-dom
, styled-ponents
libraries. When I remove those typings folders WebStorm auto creates and downloads those four libraries.
Why does this happens and how to stop this? Or let WebStorm choose the v6 types by default?
Share Improve this question edited Nov 22, 2021 at 10:59 LazyOne 166k48 gold badges414 silver badges415 bronze badges asked Nov 22, 2021 at 2:42 伊豆湖卧烟伊豆湖卧烟 934 bronze badges 1-
Experiencing exactly the same problem with typings and
react-router-dom
– Michael W. Czechowski Commented Feb 15, 2022 at 13:01
1 Answer
Reset to default 11The IDE downloads typings for some popular libraries to its configuration folder and uses it to enhance code pletion. You can remove the auto-downloaded typings from your <system directory>/javascript/typings
(https://www.jetbrains./help/webstorm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#system-directory) and then either disable typescript.external.type.definitions
Registry key or remove react-router-dom
(and other stuff you don't like to be downloaded automatically) from typescript.external.type.definitions.packages
key
The Registry can be located via: Help > Find action > type Registry...
本文标签: reactjsWebStorm is auto downloading JavaScript typings How to stop thisStack Overflow
版权声明:本文标题:reactjs - WebStorm is auto downloading JavaScript typings. How to stop this? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745598453a2158313.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论