D
D
Dremen2021-11-24 15:01:51
webstorm
Dremen, 2021-11-24 15:01:51

Import "react-router-dom" is not coming from the right place, what should I do?

Hello. I encountered such a problem that the import of "react-router-dom" does not come from the node_modules of the project, but from, apparently, the node_modules of the Webstorm IDE.

How can I fix it so that the import comes from the node_modules folder of the project?

619e295a8b2bd012145907.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-11-24
@Dremen

The import "occurs" at project build time. If you are trying to determine where the module is imported from by the picture, I do not advise you to do this.
If you have any problems during the build, see the webpack config settings.
If your browser highlights some syntax incorrectly, contact JetBrains support, they are quite adequate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question