Intellij IDEA:"Cannot find declaration to go to" - 新 javascript 项目中的消息

Intellij IDEA: "Cannot find declaration to go to" - message in a new javascript project

当我尝试按住 Ctrl 键并单击导入模块的路径时,我收到“无法找到要转到的声明”消息

如果路径包含“@”符号作为根引用,则会显示此消息。

我的新项目出现这个问题,旧项目没有这个问题

如何解决这个问题?

解决方法如下:

根据https://www.jetbrains.com/help/idea/using-webpack.html#edit_webpack_configuration_file

更新: 还要确保文件 /.idea/workspace.xml :

中 属性 "settings.editor.selected.configurable" = "preferences.pluginManager" 的值
<component name="PropertiesComponent">
    ...
    <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
    ...
</component>