angular More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module. code example
Example 1: More than one module matches. Use skip-import option to skip importing the component into the closest module.
ng g c new-component --module app
Example 2: skip import angular 6
ng g component component-name --skip-import
Example 3: More than one module matches. Use skip-import option to skip importing the component into the closest module. into the closest module.
ng g c new-component --module app
ng g c component-name --module ../