skip import angular 6
snippet in javascript

skip import angular 6

user4321

ng g component component-name --skip-import

More than one module matches

user822

Specify the module using the --module parameter. 
For example, if the main module is app.module.ts, run this:

ng g c new-component --module app
Or if you are in an other directory then

ng g c component-name --module ../

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

user5029

ng g c new-component --module app
//Or if you are in an other directory then
ng g c component-name --module ../