When I try to create a component in the angular cli, it\'s showing me this error. How do I get rid of it ?
Error: More than one module matches. Use sk
This is caused since the generation tried to add your component to a module, i.e. to add this line
import { MyComponent } from './Components/my-component/my-component.component';
but it found 2 modules.
As stated here, they fixed it to a situation where as long as in the root src/app folder you have only 1 module, you're fine, so just move the secondaries modules to a sub-folder.
Otherwise you have to use --module