components icon indicating copy to clipboard operation
components copied to clipboard

Schematics/alias "materialNav" collides with another alias or schematic name.

Open DaSchTour opened this issue 8 years ago • 6 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Install runs through

What is the current behavior?

Error is thrown Schematics/alias "materialNav" collides with another alias or schematic name.

What are the steps to reproduce?

  • ng new
  • ng add @angular/pwa
  • ng add @angular/material

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular CLI: 6.0.8 Node: 8.10.0 OS: darwin x64 Angular: 6.0.9 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router, service-worker

Package Version

@angular-devkit/architect 0.6.8 @angular-devkit/build-angular 0.6.8 @angular-devkit/build-optimizer 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.6.8 @angular/cli 6.0.8 @angular/material 6.4.1 @angular/pwa 0.6.8 @ngtools/webpack 6.0.8 @schematics/angular 0.6.8 @schematics/update 0.6.8 rxjs 6.2.2 typescript 2.7.2 webpack 4.8.3

Is there anything else we should know?

DaSchTour avatar Jul 25 '18 08:07 DaSchTour

problem is fixed on angular cli 6.1 RC

update CLI for existing project with ng update @angular/cli to update globally for all new projects use npm install -g @angular/cli

getsali avatar Jul 25 '18 10:07 getsali

@DaSchTour There is a work arround for it: https://github.com/angular/angular-cli/issues/11632

mbeckenbach avatar Jul 25 '18 10:07 mbeckenbach

seams that the github search is pretty bad 🙄 Thanks

DaSchTour avatar Jul 25 '18 11:07 DaSchTour

After updating to the latest version of angular cli, installation completed.

ng update @angular/cli

nishimura-yuji avatar Jul 26 '18 06:07 nishimura-yuji

Thanks @nishimura-yuji , that worked for existing projects!

And to fix it for new projects, update the CLI globally with:

npm install -g @angular/cli

baswanders avatar Jul 27 '18 09:07 baswanders

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.