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:
Here as you can see, it found Test and lets me auto import it.
Here it hasn't found Test and can't auto import it.