I have an issue integrateing fullCalendar timeline.
TypeError: "context is undefined"
_renderSkeleton http://localhost:8080/scripts/fullcalendar/v4/resource-timeline/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:596
res http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:3189
render http://localhost:8080/scripts/fullcalendar/v4/resource-timeline/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:574
receiveProps http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:3887
renderView http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:6277
render http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:6202
receiveProps http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:3887
renderComponent http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:6817
executeRender http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:6774
render http://localhost:8080/scripts/fullcalendar/v4/core/main.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:6596
calendar http://localhost:8080/resource?row_id=267&_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:1
loadCalendar http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:1176
render http://localhost:8080/resource?row_id=267&_=1f5faae92d540252c76d4f50aa1163c73ac8937a_20200625092942:2
<anonymous> http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a line 641 > eval:1
<anonymous> http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a line 641 > eval:1
exec http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:641
external http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:635
display http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:2544
external http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:635
disp http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:634
ok http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:1096
canCloseContent http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:1097
disp http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:634
external http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:635
load http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:538
onload http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:537
onload http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:536
loadScript http://localhost:8080/scripts/ui/ui-bundle.js?_=1f5faae92d540252c76d4f50aa1163c73ac8937a:522
All of the plugin JS/CSS seem to be perfectly loaded : core, daygrid, interaction, list, resource-common, resource-timeline, timeline, timegrid.
Here is my javascript code.
var AppTestTimeline = AppTestTimeline || (function ($) {
function calendar() {
new FullCalendar.Calendar($("#testtimeline")[0], {
plugins: [ 'interaction', 'resourceTimeline' ],
defaultView: 'resourceTimelineDay',
aspectRatio: 1.5,
header: { left: 'prev,next', center: 'title', right: 'resourceTimelineDay,resourceTimelineWeek,resourceTimelineMonth' },
editable: false,
resourceLabelText: 'Rooms',
resources: 'https://fullcalendar.io/demo-resources.json?with-nesting&with-colors',
events: 'https://fullcalendar.io/demo-events.json?single-day&for-resource-timeline'
}).render();
}
return { render: function(params) {
$ui.loadCalendar(calendar);
}};
})(jQuery);
What could possibly be the cause and where should i search for clues ?
Thank you.
Ok, the problem was that the core lib version was not compatible with the timeline lib i had.