After successfully adding a custom path in my Angular 9's tsconfig.base.json file, all components and related elements are loading correctly. However, Visual Studio Code is now displaying an error stating "Can not find module" in both my app routing module and app module. How can I go about resolving this issue?
tsconfig.base.json -
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/app/*"],
"@env/*": ["src/environments/*"]
},
"outDir": "./dist/out-tsc",
"sourceMap": true,
....
}
App module -
import { AppRoutingModule, routingComponents } from '@/app-routing.module';
import { AppComponent } from '@/app.component';