Recently, I noticed a change in WebStorm after an update that affected how paths were imported in my files. Initially, when typing @Component
and letting WebStorm automatically import the path, it would use the following format:
import { Component } from @angular/core
However, more recently, it has been importing the full paths instead:
import { Component } from '@angular/core/src/metadata/directives';
I am wondering if there is a configuration setting that can be adjusted to fix this issue.
[EDIT] Upon further investigation, I found that copying and pasting code into a file imports the dependencies correctly. This seems to be a glitch specific to my current setup.
It appears that only Angular libraries are experiencing this problem, leading me to believe it could be an issue with the Angular plugin. I have contacted JetBrains about this but have not received any solutions yet.