Add your application source via paths
in tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "src",
...
"paths": {
"@app/*": [
"app/*"
],
"@env/*": [
"environments/*"
]
}
}
}
Extend tsconfig.app.json baseUrl
in projects/<projectname>/tsconfig.app.json
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": [],
"baseUrl": "src",
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
import { environment } from '@env/environment';
import { ApiService } from '@app/core/services/http/api.service';