Typescript / Node Auto Import Paths issue
On an Java / angular-cli project, using typescript
Project structure:
<Project's Root>
|---- Backend
|---- Frontend
|---- node_modules
|---- src
When IDEA tries to auto-import a package from <node_modules>, the path is relative to the file that imports it; ie: `import { something } from '../../node_modules/package_containing/something'`, instead of the expected 'package_containing/something' ...
I tried marking the 'frontend' folder as "source root" or "resource root", played with the configs and all, but couldn't fix this. This is quite annoying as I cannot rely on auto-import at all this way....
Any help would be appreciated
Thanks
Please sign in to leave a comment.
can't recreate with a project of similar structure:
Sample project that shows up the issue would be appreciated
Unfortunately I can't reproduce it in a new project either...
Still trying to figure out what kind of config is causing this :/