jhachtel / AMIS3610-Group-Project

0 stars 0 forks source link

Error when doing production build #90

Closed jhachtel closed 5 years ago

jhachtel commented 5 years ago

ERROR in : Type ItemsComponent in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/items/items.component.ts

is part of the declarations of 2 modules:

AppModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/app.module.ts

and

ItemModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/item.module.ts !

Please consider moving ItemsComponent in

C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/items/items.component.ts

to a higher module that imports AppModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/app.module.ts

and

ItemModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/item.module.ts .

You can also create a new NgModule that exports and includes

ItemsComponent in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/items/items.component.ts

then import that NgModule in

AppModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/app.module.ts

and

ItemModule in C:/Users/jhach/OneDrive - Jeff Hachtel/Projects/AMIS3610/AMIS3610-Group-Project/web/src/app/item.module.ts .

jhachtel commented 5 years ago

Deleted the offending modules and the home component