Open YassinRekikVeolia opened 6 years ago
i solve my problem when i downgrade the version of datetimepicker from 6.0.16 to 6.0.0. But i don't know why it's not working with the latest version
I have the exact same problem. The last version that worked for me was v6.0.7. Since then, every release of ng-pick-datetime failed to fix the issue (or at least provide any other workaround/solution). Now, that Angular 7 is released, v6.0.7 still works, although i'd prefer to upgrade to v7.0.0. But as long as the error described by @YassinRekikVeolia still occurs, i'm kinda lost. I checked the necessary imports and usage by comparing to the docs several times, but no solution other than downgrading again. In the end, i always get an empty dialog without the date picker and the error message above.
Although this is one of the more comprehensive implementations of a date picker, i am thinking about removing this package and looking for an alternative. I would change my mind if this project would be handled more professionally (by using the github-releases feature, a changelog like Angular has, faster responses to issues, semantic versioning, improved customizability of styles, …).
{ provide: OwlDateTimeIntl, useClass: DatetimeLocaleCustomService }
In my case the problem was that my custom OwlDateTimeIntl provider didn't extend OwlDateTimeIntl
Thanks so much @jonathanamigo That did the trick! Don't know how i missed to subclass OwlDateTimeIntl
.
Hello,
I migrate my project from angular 5 to 6 and i have an issue. I have a datetimepicker in a material Dialog Modal. And now it doesn't work as before, in chrome console i had that issue every time i click on the datetimepicker.
And this is my config:
How can i fix the problem please ?