The idea is change from:
import {CoreModule} from '../core/core.module';
to:
import {CoreModule} from '@core/core.module';
To do that, we need to modify tsconfig.json file:
{
...
"compilerOptions": {
...
"baseUrl": "src",
"paths": {
"@core/*": ["app/core/*"],
"@shared/*": ["app/shared/*"],
"@environments/*": ["environments/*"]
}
}
}