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:

 

2 comments
Comment actions Permalink

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...

0
Comment actions Permalink

Elena Pogorelova: Thanks this worked well :)

0

Please sign in to leave a comment.