Tag Archives: More than one module matches. Use skipimport option to skip importing the component into the closest module.

[Solved] Angular creates component error: More than one module matches. Use skip-import option to skip importing the component into the closest module.

ng g c new-component-name

Your global Angular CLI version (12.2.9) is greater than your local version (9.1.7). The local Angular CLI version is used.

To disable this warning use “ng config -g cli.warnings.versionMismatch false”.

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

Solution:

ng g c new-component-name --module app

Your global Angular CLI version (12.2.9) is greater than your local version (9.1.7). The local Angular CLI version is used.
To disable this warning use “ng config -g cli.warnings.versionMismatch false”.More than one module matches. Use skip-import option to skip importing the component into the closest module.