ngx-daterangepicker-material
ngx-daterangepicker-material copied to clipboard
Encounter error "ERROR Error: Uncaught (in promise): TypeError: pl.weekdaysMin is not a function TypeError: pl.weekdaysMin is not a function".
Versions
- Angular version: 9.1.5
- component version: 5.0.1
Describe the bug
- Import ngx-daterangepicker-material into app.module.
- Build Angular application in prod mode.
- Load website.
- Encounter error "ERROR Error: Uncaught (in promise): TypeError: pl.weekdaysMin is not a function TypeError: pl.weekdaysMin is not a function".
To Reproduce Steps to reproduce the behavior:
- see bug description for more information
Expected behavior Error not encountered.
Screenshots
Stackblitz link
Additional context Error does not occur in development mode. Downgrading to 4.0.1 gives the "Could not resolve moment/ts3.1-typings/moment" error everytime we recompile the code.
hello can you fix this bug ?
Exact same issue here. For some reason dayjs is not getting loaded when the Angular app is bundled with --prod flag.
Facing the same issue.
Angular 10.
component version: 5.0.1
st.weekdaysMin is not a function
Having the same issue Angular 9 component version 5.0.0
A workaround for now is to set showWeekNumbers and showISOWeekNumbers to false:
<ngx-daterangepicker-material
...
[showWeekNumbers]="false"
[showISOWeekNumbers]="false"
>
</ngx-daterangepicker-material>