Visual Studio Code can't resolve angular's tsconfig paths
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to import some services using barrels and tsconfigs paths options but I can't get angular and vscode to get along. If it works for one it doesn't for the other and viceversa... My situation seems to be pretty simple: in src/app/services I have a service which is exported in a index.ts my src/tsconfig.app.json is just this: { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [], "baseUrl": ".", "paths": { "services": ["app/services"] } }, "exclude": [ "test.ts", "**/*.spec.ts" ], } and my