Angular 6 : Error while creating new component
Sometime, we get error while creating new component in angular6 project,
Error - "More than one module matches. Use skip-import option to skip importing the component into the closest module."
Solution
ng g c componentName --module app
or
ng g c componentName --module=app.module
or
ng g c componentName --skip-import
Hope this will help you and save your time.
Enjoy !!!
:)
No comments:
Post a Comment