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.

tui-calendar.js:3512 Uncaught TypeError: Cannot read property 'split' of undefined

See original GitHub issue

Version

1.4.0

Development Environment

Windows10, on Chrome 67.

Current Behavior

render() {
    var calendar = new Calendar('#calendar', {
      defaultView: 'month',
      taskView: true,
      template: {
        monthGridHeader: function(model) {
          var date = new Date(model.date);
          var template = '<span class="tui-full-calendar-weekday-grid-date">' + date.getDate() + '</span>';
          return template;
        }
      }
    });
    
    calendar.createSchedules([
      {
          id: '1',
          calendarId: '1',
          title: 'my schedule',
          category: 'time',
          dueDateClass: '',
          start: '2018-01-18T22:30:00+09:00',
          end: '2018-01-19T02:30:00+09:00'
      },
      {
          id: '2',
          calendarId: '1',
          title: 'second schedule',
          category: 'time',
          dueDateClass: '',
          start: '2018-01-18T17:30:00+09:00',
          end: '2018-01-19T17:31:00+09:00',
          isReadOnly: true    // schedule is read-only
      }
  ]);

return (
      <div id="calendar" style={{height: 800 +'px'}}></div>)

Expected Behavior

display the calendar but the output is tui-calendar.js:3512 Uncaught TypeError: Cannot read property 'split' of undefined

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dongsik-yoocommented, Aug 8, 2018

No discussion. I close this. If you have more issue, please leave it.

1reaction
dongsik-yoocommented, Jul 2, 2018

Yes. I’ll check that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tui-calendar.js:3512 Uncaught TypeError: Cannot read ...
Your DIV doesn't exist yet when you create the calendar class - render function just tells react what your component should look like....
Read more >
Cannot Read Property 'split' of Undefined - freeCodeCamp
it will throw the TypeError: Cannot read property 'split' of undefined error. The split method. When split is called on a string, it...
Read more >
How to Prevent cannot read property split of undefined
The "cannot read property split of undefined" error occurs when we try to call the split() method on a variable that stores an...
Read more >
Cannot Read Property '_Calendar' Of Undefined In Moment.Js
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator An...
Read more >
TypeError: Cannot read property 'split' of undefined - Reddit
The error message I'm getting from Jest is: TypeError: Cannot read property 'split' of undefined >10 | let arraySplit = word.split(); ^.
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