-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR TypeError: Cannot read properties of null (reading 'clampDate') #197
Comments
Hi, it looks like it's a compiler error since OwlNativeDateTimeModule & OwlDateTimeModule are not considered ngModule classes since ng-pick-datetime is not compatible with Ivy in angular 17.
|
But i need a dateTimePicker. |
ok then try this, this gives date and time and the same UI too |
That is the one that does not work with Angular 17 |
Heyho @Kartax, i just had a look at this and the demo application has basically the same setup as your code example but it works without any hickups there. See: https://github.com/NetWin/date-time-picker/blob/master/src/app/app.component.html#L22-L36 Can you provide a full example that shows this error? (Stackblitz maybe) I also tried to use (almost) exactly the code you posted above (i only removed the angular material components / directives) and it works. |
I'm having this issue too. Has anyone solved this?
I tried adding break points on the line with errors and it seems like the |
@chrissupnet29 I had same issue in dialog component, I resolved it by
|
Thank you, @Toso7, for your suggestion. I had the same problem with my code, and I was able to solve it using your solution.
|
@SergioV85 Yes I already use custom owl formats. I had another problem: Cannot display multiyear picker in material dialog. I fixed it with this:
I hope that I save somebody's time :D |
I cannot get the very basic input to work in my Angular 17 Application.
template:
<mat-form-field appearance="outline">
<mat-label>Gültig ab</mat-label>
<input matInput formControlName="validfrom" [owlDateTime]="validfromDt" [owlDateTimeTrigger]="validfromDt">
<owl-date-time #validfromDt></owl-date-time>
</mat-form-field>
and i have
OwlDateTimeModule, OwlNativeDateTimeModule
in my imports.When i view my form everything looks fine, but when i click into the datetime-input it "tries" to render the calender, but fails with following error:
When i continue to click, i see a partially rendered calendar and even more but similar errors (Cannot read properties of null ...)
Does somebody have an idea how to solve this?
The text was updated successfully, but these errors were encountered: