I am trying to add custom paths to tsconfig.json, so I can move from this:
import { MyComponent } from ‘…/…/components/my.component’;
to this:
import { MyComponent } from ‘@components/my.component’;
I have this in tsconfig.json:
{
“compileOnSave”: false,
“compilerOptions”: {
“baseUrl”: “./”,
“paths”: {
“@components/“: [”./components/”],
but the compiler still fails to resolve ‘@components/my.component’ to the correct path. What am I doing wrong ?
TIA