danielmoncada / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
137 stars 59 forks source link

Problems while migrating to Angular 17.3.2 #194

Open Robin-Bley opened 3 months ago

Robin-Bley commented 3 months ago

I used the date-time-picker already in Angular 17, but after an update to Angular 17.3.2 the popup does not work.

This is a part of an stacktrace of multiple errors:

TypeError: Cannot read properties of null (reading 'clampDate')
    at set pickerMoment (danielmoncada-angular-datetime-picker.mjs:2723:59)
    at OwlDateTimeContainerComponent.initPicker (danielmoncada-angular-datetime-picker.mjs:2959:26)
    at OwlDateTimeContainerComponent.ngAfterContentInit (danielmoncada-angular-datetime-picker.mjs:2817:14)

It seems that the DateTimeAdapter could not be found. But when i inject a DateTimeAdapter in my component, it can be injected.

I am using the component in a standalone component.

These imports are already included:

Many thanks in advance.

firashamila33 commented 3 weeks ago

can you share an example on how to reproduce ?