Recently, I developed an Angular 15 application with the environments folder located under src.
Here is a snippet from my tsconfig.json file:
"baseUrl": "./src",
"paths": {
"@app/*": [
"app/*"
],
"rxjs": [
"./vendor/rxjs.ts"
],
"@env/*": [
"environments/*"
]
}
However, when I try to use relative paths in my code (such as in app.module .ts), I encounter errors. Here is an example of how I am trying to use it:
import { environment } from '@env/environment';