Angular 7 Can't find a way to get tsconfig.json path mapping works
问题 I've started an angular 7 project and I'm trying to configure the "path mapping" on angular.json to change my import way from this: import { environment } from '../../../environments/environment'; to this: import { environment } from '@environments/environment'; I've done this config on the root level tsconfig.json file: "compilerOptions": { "baseUrl": "src", // This must be specified if "paths" is. ... "paths": { "@app/*": ["app/*"], "@config/*": ["app/_config/*"], "@environments/*": [