petabencana / cognicity-cards-ng

CogniCity reporting cards angular project
0 stars 6 forks source link

build error #1

Closed matthewberryman closed 5 years ago

matthewberryman commented 5 years ago
ERROR in : Type LocationPickerComponent in /Users/matthew/code/cognicity-cards-ng/src/app/components/location-picker/location-picker.component.ts is part of the declarations of 2 modules: EqlocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/eqlocation/eqlocation.module.ts and LocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/location/location.module.ts! Please consider moving LocationPickerComponent in /Users/matthew/code/cognicity-cards-ng/src/app/components/location-picker/location-picker.component.ts to a higher module that imports EqlocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/eqlocation/eqlocation.module.ts and LocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/location/location.module.ts. You can also create a new NgModule that exports and includes LocationPickerComponent in /Users/matthew/code/cognicity-cards-ng/src/app/components/location-picker/location-picker.component.ts then import that NgModule in EqlocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/eqlocation/eqlocation.module.ts and LocationModule in /Users/matthew/code/cognicity-cards-ng/src/app/routes/cards/location/location.module.ts.

I tried simply removing that one and some other duplicate declarations I found (after removing that one), but that didn't work—I guess you need to rename a number of them.

ilhamwahabi commented 5 years ago

Fixed it by remove eqlocation and refactor to use location only.