Monday, September 16, 2019

More than one module matches. Use skip-import option to skip importing the component into the closest module.

This error rears its head when you are using the Angular-CLI, and, yes, there is more than one module where a component could be wired up while you are trying to new up a component via the command line command. Why don't you spec what you want like so:

ng generate component bunk --module=../app.module.ts

No comments:

Post a Comment