
Alejandro Patiño Cardona
PreguntaAl modularizar products me da el siguiente error
Type ProductsComponent is part of the declarations of 2 modules: AppModule and ProductsModule! Please consider moving ProductsComponent to a higher module that imports AppModule and ProductsModule. You can also create a new NgModule that exports and includes ProductsComponent then import that NgModule in AppModule and ProductsModule.
pero cuando quito productscomponent en el app.module.ts en declarations no se presenta el error pero el enlace deja de funciona. Muchas gracias por la ayuda

Luciano Nicolás Prina
Hola Alejandro! Tendrías que revisar tu codigo, no te está actualizando los imports automaticamente. Al eliminarlo del app.module.ts, tienes que fijarte que en el app.module-routing.ts no estes llamando a este como si fuera de App Module, y si como parte del ProductModule.