steve-ferrero / ng-pick-datetime

A datepicker for angular
http://www.web-atrio.com/SSII/developpement-2D-3D
MIT License
3 stars 3 forks source link

Errors with AOT compilation #10

Open kotuwe opened 6 years ago

kotuwe commented 6 years ago

Hello, i used this pretty module in my project. When i run or build with AOT - all is ok! But when i make new project and import there project with this module, and try to build with AOT - have next error:

ERROR in ..\some_project.ts(119,14): Error during template compile of 'ɵcz' Function calls are not supported in decorators but 'InjectionToken' was called in 'OWL_DATE_TIME_LOCALE' 'OWL_DATE_TIME_LOCALE' references 'OWL_DATE_TIME_LOCALE' 'OWL_DATE_TIME_LOCALE' references 'OWL_DATE_TIME_LOCALE' 'OWL_DATE_TIME_LOCALE' calls 'InjectionToken' at ..\ng-pick-datetime\date-time\adapter\date-time-adapter.class.ts(9,41).

part of my modules.ts:

providers: [ { provide: OWL_DATE_TIME_LOCALE, useValue: 'ru' }, { provide: OwlDateTimeIntl, useValue: DefaultIntl},

help me please, how can i fix this problem :)