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'

0
2 comments

works for me. Please can you clarify how the modules are exported/re-exported? Code snippets would be helpful

0

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.

0

Please sign in to leave a comment.