Components: Generate navigation schematic fails in 6.0.1

Created on 8 May 2018  Â·  4Comments  Â·  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

As seen on: https://material.angular.io/guide/schematics the command
ng generate @angular/material:material-nav
should run as expected

What is the current behavior?

ng generate @angular/material:material-nav
_Schematic input does not validate against the Schema: {"dryRun":false,"inlineStyle":false,"inlineTemplate":false,"changeDetection":"Default","styleext":"css","spec":true,"flat":false,"skipImport":false,"export":false}
Errors:
Data path "" should have required property 'name'._

What are the steps to reproduce?

  • create a new project with angular-cli: 6.0.0
  • ng add @angular/material
  • ng add @angular/cdk
  • ng generate @angular/material:material-nav

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

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

npm: 5.8.0

node: 8.9.4

angular-cli: 6.0.0
angular: 6.0.0
@angular/cdk 6.0.1
@angular/material 6.0.1
typescript 2.7.2

Is there anything else we should know?

Most helpful comment

ng generate @angular/material:material-nav --name <component-name>

All 4 comments

ng generate @angular/material:material-nav --name <component-name>

Thanks @nicholas-davis totally my bad but maybe worth updating the documentation on https://material.angular.io/guide/schematics

I have updated the documentation here #11283 . But I don't know why Travis build is failing, it's my first PR in the repo

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._

Was this page helpful?
0 / 5 - 0 ratings