Command
new
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I just generated a new Angular project and I'm surprised to see that the boilerplate comes with a TS linting error. More specifically, it pertains to the outDir property in tsconfig.app.json:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.ts"]
}
The TS linting error text:
The common source directory of 'tsconfig.app.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
Visit https://aka.ms/ts6 for migration information
If specified, .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory. The directory structure of the original source files is preserved; see rootDir if the computed root is not what you intended.
Minimal Reproduction
- Generate a new project with
ng new.
- Open
tsconfig.app.json.
- Observe the linting error.
Exception or Error
Your Environment
Angular CLI : 22.0.1
Node.js : 26.1.0
Package Manager : npm 11.16.0
Operating System : win32 x64
Anything else relevant?
No response
Command
new
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I just generated a new Angular project and I'm surprised to see that the boilerplate comes with a TS linting error. More specifically, it pertains to the
outDirproperty intsconfig.app.json:{ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/app", "types": [] }, "include": ["src/**/*.ts"], "exclude": ["src/**/*.spec.ts"] }The TS linting error text:
Minimal Reproduction
ng new.tsconfig.app.json.Exception or Error
Your Environment
Anything else relevant?
No response