Auto import works for ES6 modules but not NodeJS modules

This issue has been fixed in https://youtrack.jetbrains.com/issue/WEB-42566 but they missed a use case.

In ES6 modules if you export the object of a class, you can then auto import it by calling the name of the class but this doesn't work for nodeJS.

ES6 working example:
Test.js

main.js

Here as you can see, it found Test and lets me auto import it.

 


NodeJS example:
Test.js

main.js

Here it hasn't found Test and can't auto import it.

0

Please sign in to leave a comment.