TypeError: key.toUpperCase is not a function
See original GitHub issueI’m getting this error when trying to use latest FullCalendar installed using bower:
TypeError: key.toUpperCase is not a function
at Locale.longDateFormat (moment.js:2635)
at formatRange (fullcalendar.js:1564)
at fc.View.Class.extend.formatRange (fullcalendar.js:7067)
at fc.View.Class.extend.computeTitle (fullcalendar.js:7032)
at fc.View.Class.extend.updateTitle (fullcalendar.js:7026)
at fc.View.Class.extend.setRange (fullcalendar.js:6948)
at View.extend.setRange (fullcalendar.js:10796)
at fc.View.Class.extend.setDate (fullcalendar.js:6940)
at fc.View.Class.extend.displayView (fullcalendar.js:7156)
at fullcalendar.js:7118
Can someone explain me, why this is happening?
Thank you 👍
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top Results From Across the Web
TypeError: toUpperCase is not a function in JavaScript
The "toUpperCase is not a function" error occurs when we call the toUpperCase() method on a value that is not a string. To...
Read more >javascript - .toUpperCase() is not a function - Stack Overflow
For example, when name is "JERRY" then the function should return the string "HELLO, JERRY!" The console logs error: . toUpperCase() is not...
Read more >[Solved] TypeError: toUpperCase is not a function - ItsJavaScript
Solution 1: Use the toUpperCase () method on a valid string object. We can easily resolve the issue by using the toUpperCase() method...
Read more >"value.toString(...).toUppercase is not a function" - Laracasts
Hi everybody, in my vue component I have an "uppercase" filter to tranform strings into uppercase, however I'm gettinh the following error: TypeError: ......
Read more >React type.toUpperCase is not a function | by Kevin Simper
React type.toUpperCase is not a function ... So before you pull your hair out (as I have done), go back and look at...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We received the same error after upgrading to the latest version.
Tracked it down to titleFormat. The new version uses a single string with View-Specific Options, while the previous version used View Option Hashes. We needed to change how we were initializing the Calendar.
https://fullcalendar.io/docs/views/View-Specific-Options/ https://fullcalendar.io/docs/views/View_Option_Hash/
The error itself was triggered via moment.js’s longDateFormat function attempting to upper case the Option Hash object.
I’m getting the same error…