atais / ng2-eonasdan-datetimepicker

A wrapper directive around the Eonasdan Datepicker v4 component.
MIT License
34 stars 23 forks source link

Error: BrowserModule has already been loaded #5

Closed dpinheiro closed 6 years ago

dpinheiro commented 7 years ago

Hi

Was trying to use this module but faced this problem Error: BrowserModule has already been loaded

I was checking and your module is indeed importing the BrowserModule, it shouldn't do that https://angular.io/docs/ts/latest/cookbook/ngmodule-faq.html#!#q-browser-vs-common-module

atais commented 7 years ago

Hi.

I would be really glad to help but unfortunately, I do not use Angular 2 anymore at all.

If you would like to contribute to this repository or fork it and maintain another version on your own, you are most welcome.

dtopaloglou commented 7 years ago

@dpinheiro I have the same issue also.

suresh2018 commented 7 years ago

i have the same issue also

fetrarij commented 6 years ago

This is already fixed with the lastest version. The lib is now importing CommonModule instead of BrowserModule so it should be fine.