Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question