When I run nx g @nrwl/angular:app app in my freshly created nx workspace and select SASS for stylesheets I'm getting the following error:
Cannot find base TypeScript configuration file 'tsconfig.base.json
The app gets created as expected.
npx create-nx-workspace@latest with the Angular preset
nx g @nrwl/angular:app app with SASS and routing
Cannot find base TypeScript configuration file 'tsconfig.base.json'.
Globally:
@angular/[email protected]
@nrwl/[email protected]
nx report in my project:
@nrwl/angular : 9.5.1
@nrwl/cli : 9.5.1
@nrwl/cypress : 9.5.1
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 9.5.1
@nrwl/linter : Not Found
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 9.5.1
@nrwl/web : Not Found
@nrwl/workspace : 9.5.1
typescript : 3.8.3
Hi @matthiasunt, do you happen to have the Angular CLI installed globally?
Hi @matthiasunt, do you happen to have the Angular CLI installed globally?
Hi, yes. @angular/[email protected]
Hmm.. I'm not able to reproduce it locally. I do know that the tsconfig.base.json and all those changes are happening in v10 of Nx and Angular.
I suspect that something got updated somewhere behind the scenes. This might also be related to the issue you created in #3286.
Do you happen to have Nx installed globally as well?
Hmm.. I'm not able to reproduce it locally. I do know that the tsconfig.base.json and all those changes are happening in v10 of Nx and Angular.
I suspect that something got updated somewhere behind the scenes. This might also be related to the issue you created in #3286.
Do you happen to have Nx installed globally as well?
Thanks for the hint. Yes, @nrwl/[email protected].
Can you please provide the version of @schematics/angular that you have or provide a repo to pull down?
The tsconfig.base.json is something for v10 which we are working on but should not be required for 9.x.
Can you please provide the version of
@schematics/angularthat you have or provide a repo to pull down?The
tsconfig.base.jsonis something for v10 which we are working on but should not be required for9.x.
I just downgraded @schematics/angular from 10.x to ^9.1.2 and it worked, thanks.
I get the same problem on Angular 10, I'm using a workspace with 4 projects, I'm trying to add a new project
ng generate application xxxx
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
Cannot find base TypeScript configuration file 'tsconfig.base.json'.
Dependencies I use:
"@angular/animations": "~10.0.8",
"@angular/cdk": "^10.1.2",
"@angular/common": "~10.0.8",
"@angular/compiler": "~10.0.8",
"@angular/core": "~10.0.8",
I got the solution, for unknow reason, the upgrade from 9 to 10 did non rename tsconfig.json to tsconfig.base.json.
I've do it myself, and then modified the variuos references in workspace.
After that, adding a new project was succesful.
I get the same problem on Angular 10, I'm using a workspace with 4 projects, I'm trying to add a new project
ng generate application xxxx
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
Cannot find base TypeScript configuration file 'tsconfig.base.json'.Dependencies I use:
"@angular/animations": "~10.0.8",
"@angular/cdk": "^10.1.2",
"@angular/common": "~10.0.8",
"@angular/compiler": "~10.0.8",
"@angular/core": "~10.0.8",I got the solution, for unknow reason, the upgrade from 9 to 10 did non rename tsconfig.json to tsconfig.base.json.
I've do it myself, and then modified the variuos references in workspace.
After that, adding a new project was succesful.
I was running into the same issue when upgrading from angular9 to angular10. My problem was that I only upgraded the @angular/core and forgot to upgrade @angular/cli separately. I used to --migrateOnly on the ng update which helped to fix the missing tsconfig.base.json without doing the work by hand.
Most helpful comment
I get the same problem on Angular 10, I'm using a workspace with 4 projects, I'm trying to add a new project
ng generate application xxxx
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
Cannot find base TypeScript configuration file 'tsconfig.base.json'.
Dependencies I use:
"@angular/animations": "~10.0.8",
"@angular/cdk": "^10.1.2",
"@angular/common": "~10.0.8",
"@angular/compiler": "~10.0.8",
"@angular/core": "~10.0.8",
I got the solution, for unknow reason, the upgrade from 9 to 10 did non rename tsconfig.json to tsconfig.base.json.
I've do it myself, and then modified the variuos references in workspace.
After that, adding a new project was succesful.