Recently, I encountered a strange issue with my Visual Studio Code where it started suggesting only absolute imports from the sub-package level in my Lerna packages. For instance:
https://i.sstatic.net/fr7FW.png
The auto import is recommending the path @package/server/src/database
instead of just ../database
, even though the file being edited is within the same package and one folder below the file containing the database variable I need to use.
Could this be a bug or a configuration problem?
I've tried changing the Import Module Specifier
setting for TypeScript in Visual Studio Code to all three options (auto, relative, and absolute), but none of them seem to resolve the issue.