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:

 

0
3 comments

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 remove react-router-dom from typescript.external.type.definitions.packages

The Registry can be located via: Help > Find action > type Registry...

1

Elena Pogorelova: Thanks this worked well :)

0

Elena Pogorelova you are a hero and a champion! I've had this issue and lost 2 days on it.

0

Please sign in to leave a comment.