tui-calendar.js:3512 Uncaught TypeError: Cannot read property 'split' of undefined
See original GitHub issueVersion
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:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >
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 Free
Top 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

No discussion. I close this. If you have more issue, please leave it.
Yes. I’ll check that.