{"id":520,"hash":"c696a9c68a6abad93b14c8cc3d779d2876b6e14e783f476f746964911f4b46e6","pattern":"Error: More than one module matches. Use skip-import option to skip importing the component into the closest module","full_message":"When I try to create a component in the angular cli, it's showing me this error. How do I get rid of it ?\n\n  Error: More than one module matches. Use skip-import option to skip importing the component into the closest module.\n\nI'm using angular cli version: 1.4.1","ecosystem":"npm","package_name":"angular","package_version":null,"solution":"Specify the module using the --module parameter. \nFor example, if the main module is app.module.ts, run this:\n\nng g c new-component --module app\n\nOr if you are in an other directory then\n\nng g c component-name --module ../","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/46174863/error-more-than-one-module-matches-use-skip-import-option-to-skip-importing-th","votes":579,"created_at":"2026-04-19T04:51:17.798701+00:00","updated_at":"2026-04-19T04:51:17.798701+00:00"}