Recently there was an upgrade in WebStorm (I think) and it changed how paths were imported in my files. Previously, if I typed @Component and allow WebStorm to automatically import the path, it would use this form:
import { Component } from @angular/core
But recently it has started pulling in the full paths instead:
import { Component } from '@angular/core/src/metadata/directives';
Is there a configuration change I can make to address this?
[EDIT] I discovered that if I copy and paste code into a file, it will import the dependencies properly. This feels like a bug that my particular configuration is revealing.
It appears that the only libraries that do this are Angular libraries, so I suspect the problem is with the Angular plugin. I have reached out to JetBrains and they have no answers.
ng generate library. I follow the documentation guide, but WebStorm keeps importing the long form of the path for the library components. I'm wondering if this is a bug.