Bin eigentlich der einzige den es stört wie @WebStormIDE WebStorm die Import Pfade in TypeScript vorschlägt. Ich möchtet doch einfach nur import { foo } from './file' anstatt import { foo } 'root/foo/modules/bla/file' wenn z.b. die Datei im gleichen Verzeichnis liegt.
-
-
Replying to @DerAlbert
Can you please check the import style options you have in Preferences | Editor | Code Style | TypeScript - Imports: do you have Use paths relative to tsconfig.json checked on unchecked?
2 replies 0 retweets 2 likes -
Replying to @WebStormIDE
Now I have it working, somehow. But now i lost the ability to import from '@/' for things which are up in the hierarchy. Now everything is relative, which also sucks. I think a variation should be use path mappings from tsconfig, only INSIDE specific paths.
2 replies 0 retweets 0 likes -
Replying to @DerAlbert
If you have path mappings configured in tsconfig.json and you want to use them only outside the specific paths, please try this option. Hope it helps!pic.twitter.com/uq08QwhW2x
2 replies 0 retweets 1 like -
Replying to @WebStormIDE
Sadly, this conflicts with other stuff, in /src/services is a index.ts which exports all allowed services, which worked before. this will be killed by setting the @/services path in the tsconfig. it does not even compile.pic.twitter.com/xaY7HHM7F5
2 replies 0 retweets 0 likes -
Replying to @DerAlbert
Hm... Can you please try to add `@/services` "to the Do not import exactly from" list in the Import code style settings?
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
I've tested this. With adding every folder which is not @/services or @/components, and also adding only @/services and @/components. Nothing provides the my desired behavior. I think I should make a sample repository.
1 reply 0 retweets 0 likes
Yes, a sample project would help us better understand the use case. It would be great if you file a new issue on https://youtrack.jetbrains.com/issues/WEB Thanks!
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.