@phpstorm my IDE warns me about "Import can be shortened" (in ts). Shortened path would be the alias from the tsconfig.json; but this leads to circular dependencies on compile. Is there a way to only shorten paths not within the same package?
Alternatively, you can disable the inspection for that specific import: put a cursor in the import path, press Alt-Enter, then arrow Right and select Suppress for Statement.
-
-
We will also work on a new inspection that will check for the cyclic imports. Stay tuned!
-
And an additional check for cyclic imports when doing auto import. The fix will land most probably in WebStorm 2019.2.1 or 2019.2.2.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
In this case, it would be really great if you could share an example with us.