I am having trouble getting an Angular stackblitz app to use the path aliases.
Using Angular 15.2.3
tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./src/",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"],
"paths": {
"@components/*": ["app/components/*"],
"@pages/*": ["app/pages/*"]
}
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictInjectionParameters": true
}
}
If you remove the "paths": entry it works fine, otherwise it forever loads.
My stackblitz example app - StackBlitz Example
Any help appreciated!