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


ng g component –skipTests /admin/home –module=app

This command will create home component inside admin folder with app module.

2 thoughts on “Create Angular Component if more than one module matches”

Leave a Reply

Your email address will not be published. Required fields are marked *