kartik-v / yii2-date-range

A Date Range Picker for Bootstrap useful for reports and filtering.
http://demos.krajee.com/date-range
Other
93 stars 81 forks source link

daterange.js firstDayOfWeek is not a function #140

Closed MaGiCmAsTeR0511 closed 5 years ago

MaGiCmAsTeR0511 commented 5 years ago

Prerequisites

Environment

Browsers

Operating System

Libraries

Isolating the problem

when i use the Daterangepicker following error is shown

jquery.js:3869 Uncaught TypeError: moment.localeData.firstDayOfWeek is not a function

it is in the 86 line of your daterangejs

when i delete this line everything is working fine, this is also my workaround till today but with every composer update this error is shown again

can you please fix that

kartik-v commented 5 years ago

This is related to the third party date range picker plugin.

Ideally, I believe, you should not be facing this issue - as can be seen in the demos (the same plugin code works).

However, if you feel there is some issue that needs to be resolved - please report it to the above plugin author - so that it can be fixed upstream there and referred here.