0
Include a module login-home
, in the app.html
, on my machine is running normally, but on the production server appears this error:
ERROR IN:
Type Logincomponenthome in C: /Projects/Jenkins/store.telcabos/src/app/Components/Register/login-home/login-home.component.ts is part of the declarations of 2 modules: Appmodule in C: / projects / Jenkins / store.telcabos / src / app / app.module.ts and Loginhomemodule in C: / projects / Jen kins / store.telcabos / src / app / components / Register / login-home / login-home.module. ts! Please consider moving Logincomponenthome in C: / projects / Jenki ns / store.telcabos / src / app / components / Register / login-home / login-home.component.ts to a top module importing Appmodule in C: / Projects / Jenki ns / store.telcabos / src / app / app.module.ts e Loginhomemodule em C: /Projects/Jenkins/store.telcabos/src/app/Components/Register/login-home/login-home.modulets. You can also create a new Ngmodule that exports and includes Logincomponenthome in C: /Projects/Jenkins/store.telcabos/src/app/c omponents / Register / login-home / login-home.component.ts, then import this Ngmodule into the Appmodule in C: / Projects, enkinsistore and telcabosisrciaPP / app module.ts and Loginhomemodule in C: /Projects/Jenkins/store.telcabos/src/app/Components/Register/login-home/login-home.module.ts
Someone would have a solution?
This one with redundant imports! Check your imports, do not double import, or move the import to a root module
– Eduardo Gonçalves
What about the code of the modules? Try to remove the
LoginComponentHome
ofimports
anddeclarations
ofAppModule
– Costamilam
I actually doubled the login module, because I needed a specific module for home, the current login module, does not allow using the <login> tag, at least when I tried, a blank page appeared. On my machine runs normally.
– Miquéias
no app.module import { Logincomponenthome } from './Components/Register/login-home/login-home.Component'; declarations: [ Appcomponent, Categorycomponent, Groupcomponent, Newslettercomponent, Logincomponenthome ],
– Miquéias