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

I'm getting "Cannot find declaration to go to in" message when try to Ctrl + click the path of an imported module

This message shows up if the path contains "@" symbol as a root reference.

This is happening in my new project and there is no such problem in the old project.

How to fix this problem?

enter image description here



Solution 1:[1]

Here is the solution: enter image description here

according to https://www.jetbrains.com/help/idea/using-webpack.html#edit_webpack_configuration_file

upd: And also make sure that value of property "settings.editor.selected.configurable" = "preferences.pluginManager" in file /.idea/workspace.xml :

<component name="PropertiesComponent">
    ...
    <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
    ...
</component>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1