Move file doesn't update the path
I really like using Webstorm in developing React, but unfortunately, when I move a file to a new directory, it doesn't update all the paths (with the "search for refenrences checkbox" marked)
Before:

Now I move the categoriesActionTypes.js file to the actionTypes folder:

The import * as types from constants/categoriesActionTypes from image above is not updated. It should equal constants/actionTypes/categoriesActionTypes :(

This is the first feature which is better implemented in VisualStudio Code.
When I run 'find usages', I also dont see any results
Please sign in to leave a comment.
Does the IDE resolve constants/categoriesActionTypes path? This is the absolute path - do you use webpack resolve rules or any other way to configure path aliases to make the imports like this work?
Yes, I use jsconfig.json:
{"compilerOptions" : {
"baseUrl" : "./src"
}
}
and .eslintrc:
"import/resolver": {"node": {
"paths": ["src"]
}
}
and create-react-app(which probably has webpack under the hood)
Thank you for such quick response
and you were right, the module is not resolved:
What IDE version do you use? "baseUrl" from jsconfig.json is supported since 2020.1, see https://youtrack.jetbrains.com/issue/WEB-43061. Note that Preferences | Editor | Code Style | JavaScript" -> Imports -> "Use paths relative to ..." must be enabled, see https://youtrack.jetbrains.com/issue/WEB-43061#focus=streamItem-27-3885282.0-0
I had the 2019.3 version.
Thank you, you are awesome!