rd-dev-ukraine / angular-io-datepicker

MIT License
21 stars 18 forks source link

Error when importing DatePickerModule in the latest angular (5.0.3) #31

Open zlatsic opened 7 years ago

zlatsic commented 7 years ago

I'm trying to add datetime pickers to my application, but am getting this error: Unexpected value 'DatePickerModule' imported by the module 'AppModule'. Please add a @NgModule annotation. It happens when I'm importing the datepicker like so: import { DatePickerModule } from "angular-io-datepicker/src/datepicker/index"; Also, OverlayModule is imported normally.

I think this might be due to the Angular version, since this package supports v4 and I'm using v5, but would like confirmation since I only recently started using Angular. If not, I'd appreciate any advice in fixing this problem.

DmytroStepaniuk commented 6 years ago

The same thing :(

songoo commented 6 years ago

Hi, same problem. Anyone found any way around ?

Antony007 commented 6 years ago

This library is not compatible with AOT. Try building with --aot=false

danielchikaka commented 6 years ago

Anyone who have solved this? Getting same error

cbarreraRodriguez commented 6 years ago

i'm getting the same error, with no success trying to fix it.