question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ng generate @angular/material:navigation jnav` yields "... unhandled exception ..."

See original GitHub issue

What am I doing wrong? According to my interpretation of Navigation schematic the following ng generate ... command should have worked.

PS rbeNgMat>  ng generate @angular/material:navigation jnav
An unhandled exception occurred: Schematic "navigation" not found in collection "@angular/material".
See "C:\Users\joeco\AppData\Local\Temp\ng-KACyoy\angular-errors.log" for further details.
PS rbeNgMat>

Thanks in advance. Love and peace, Joe angular-errors.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
JoeCodeswellcommented, Feb 7, 2020

Hi @Splaktar and @devversion , Thanks for the help. So I got 3 things from this.

  1. The current docs are for Angular Material version 9
  2. The correct command for Angular Material version 8, looking it up on https://v8.material.angular.io/guide/schematics, is ng generate @angular/material:nav <component-name>
  3. The correct place for me to post this kind of issue is https://github.com/angular/components

I can report that this WORKED LIKE A CHAMP!

PS rbeNgMat> ng generate @angular/material:nav jnav
CREATE src/app/jnav/jnav.component.html (931 bytes)
CREATE src/app/jnav/jnav.component.spec.ts (1234 bytes)
CREATE src/app/jnav/jnav.component.ts (582 bytes)
CREATE src/app/jnav/jnav.component.css (193 bytes)
UPDATE src/app/app.module.ts (1045 bytes)
PS rbeNgMat>

Thanks SO MUCH. Love and peace, Joe

1reaction
devversioncommented, Feb 7, 2020

@JoeCodeswell Awesome. Thanks for reporting back, and glad that it works now!.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run ng generate @angular/material:material-nav
Using the ng update -all command updated all the dependancies to the correct version and this worked fine. Here is the result
Read more >
\appdata\local\temp\ng-eepcwd\angular-errors.log for further ...
angular ng serve command throws error: An unhandled exception occurred: Project ... angular/components`ng generate @angular/material:navigation jnav` yields ...
Read more >
Schematics - Angular Material
The navigation schematic will create a new component that includes a toolbar with the app name, and a responsive side nav based on...
Read more >
Typescript ng generate an unhandled exception occurred ...
Programming Tutorial & Code Examples for Typescript Ng Generate An Unhandled Exception Occurred Schematic Not Found In Collection Schematics Angular.
Read more >
Create an Angular App with a Side-Navigation and ... - Medium
ng serve -o. Finally, we can add our side navigation component with another schematic. ng generate @angular/material:navigation navigation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found