Webstorm resolve wrong path when using react-router-dom@next
After instlaling the next version of react-router-dom I noticed that webstorm can not resolve the link correctly.
Webstorm kind a have own cache of the old version and try to resolve there the paths of the modules:
Please sign in to leave a comment.
The IDE downloads typings for some popular libraries to its configuration folder and uses it to enhance code completion. You can remove the auto-downloaded typings from your <system directory>/javascript/typings (https://www.jetbrains.com/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 removereact-router-dom
fromtypescript.external.type.definitions.packages
The Registry can be located via: Help > Find action > type
Registry...
Elena Pogorelova: Thanks this worked well :)
Elena Pogorelova you are a hero and a champion! I've had this issue and lost 2 days on it.