firstDayOfWeek is not a function #2262
-
Following documentation leads to exception: Uncaught TypeError: t.localeData(...).firstDayOfWeek is not a function |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There's no such exception on that webpage. Sounds like you haven't included the moment.js library in your page. |
Beta Was this translation helpful? Give feedback.
-
The problem was the version of moment I included was an older one. When I checked the js source I saw firstDayOfWeek was being called from moment so I updated to this and it now works fine: <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js" integrity="sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>Thanks for the quick reply. |
Beta Was this translation helpful? Give feedback.
There's no such exception on that webpage.
Sounds like you haven't included the moment.js library in your page.