question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: key.toUpperCase is not a function

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
kreiachcommented, Oct 6, 2016

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.

9reactions
victorcarvalhospcommented, Sep 22, 2016

I’m getting the same error…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found