Topic: add new component
                  
                  enos
                  pro
                  asked 7 years ago
                
                Hello,
I have version 6 of AngularJS, I'm trying to create a new component "ng g c component-name" and I'm having the following error.
Do you know what I can do to add new components, modules and services?
https://ibb.co/kZaYoz
https://ibb.co/gEZtoz
                
                  
                
                
                
              
              
            FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Opened
Specification of the issue
              - ForumUser: Pro
 - Premium support: No
 - Technology: MDB Angular
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: Yes
 
Tags
                  
Damian Gemza staff commented 7 years ago
Dear enos, Your error means, that you're having two or more projects which use the same root. So ng g c don't know, in which project you want to add the new component. You could try to check this link. Maybe there's some advice which you'll be able to use. LINK: https://github.com/angular/angular-cli/issues/10702 Best Regards, Damian