Trailing slash in path and module resolution
Webstorm/IDEA can't resolve a module that imported using ES6 import syntax with aliases and has a trailing slash in a path. Expected: module resolved by index.js file in a directory.
For example:
/src/res.js
/components/some/index.js
/components used as alias 'ui'
--- res.js ---
import some from 'ui/some/'
But this works:
--- res.js ---
import some from 'ui/some'
Please sign in to leave a comment.
works for me. Please can you clarify how the modules are exported/re-exported? Code snippets would be helpful
I created the issue:
https://youtrack.jetbrains.com/issue/IDEA-186867
And attached test application (tapp.zip) in this issue.
If you need more information feel free to ask for.