More than one module matches. Use skip-import option to skip importing the component into the closest module. Command ng g component –skipTests /admin/home –module=app This command will create home component inside admin folder with app module. Post navigation How to create Angular 6 and Asp.net Core 2.0 App in Visual StudioAn unhandled exception occurred: Could not find module “@angular-devkit/build-angular”