index.js files are not resolved in imports

I would also be useful if import actions from './actions' would actually resolve index.js file if it exists.

This kind of project layout seems to be quite common. 

 

 

0
4 comments

Doesn't it? 'Directory' imports are correctly resolved to me

0
Avatar
Permanently deleted user

It doesn't work in Intellij Idea. Any ideas why?

0

Make sure that up-to-date NodeJS plugin is installed and enabled in Preferences | Plugins

0
Avatar
Permanently deleted user

Wow thanks, that did the trick! 

0

Please sign in to leave a comment.