Javascript 无法读取属性';选项';未定义的

Javascript 无法读取属性';选项';未定义的,javascript,fullcalendar,fullcalendar-scheduler,fullcalendar-4,Javascript,Fullcalendar,Fullcalendar Scheduler,Fullcalendar 4,我正在使用调度程序的试用版。我已尝试在此说明之后插入自定义视图 我得到一个错误 Uncaught TypeError: Cannot read property 'options' of undefined at i._renderSkeleton (main.min.js:6) at i.res [as renderSkeleton] (main.js:3189) at i.render (main.min.js:6) at i.Component.receiv

我正在使用调度程序的试用版。我已尝试在此说明之后插入自定义视图

我得到一个错误

Uncaught TypeError: Cannot read property 'options' of undefined
    at i._renderSkeleton (main.min.js:6)
    at i.res [as renderSkeleton] (main.js:3189)
    at i.render (main.min.js:6)
    at i.Component.receiveProps (main.js:3887)
    at CalendarComponent.renderView (main.js:6277)
    at CalendarComponent.render (main.js:6202)
    at CalendarComponent.Component.receiveProps (main.js:3887)
    at Calendar.renderComponent (main.js:6817)
    at Calendar.executeRender (main.js:6774)
    at Calendar.tryRerender (main.js:6755)
    at Calendar.requestRerender (main.js:6747)
    at Calendar.dispatch (main.js:6735)
    at Calendar.changeView (main.js:7006)
    at HTMLButtonElement.buttonClick (main.js:6063)
这是我代码的一部分:

var calendar = new FullCalendar.Calendar(calendarEl, {
                schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
                plugins: ['interaction', 'dayGrid', 'timeGrid', 'list', 'resourceTimeline'],
                defaultView: 'dayGridMonth',
                defaultDate: currentDate,
                editable: true,
                themeSystem: 'standard',
                locale: 'de',
                selectable: true,
                droppable: true,
                header: {
                    left: 'prev,next today createEvent',
                    center: 'title',
                    right: 'fourdays,dayGridMonth,timeGridWeek,timeGridDay,listWeek'
                },
                views: {
                    fourdays: {
                        type: 'resourceTimeline',
                        duration: { days: 4 },
                        buttonText: '4Days'
                    }
                }

只有当我更改为“时间线”视图时,才会发生这种情况。月、日、周和列表视图正在工作。知道如何解决这个问题吗?

我已经降级到v4.3.1,错误不再出现。这显然是一个bug。

无法使用4.4.0和代码重现错误。演示:。即使在视图之间更改,也不会出现控制台错误。也许您没有提供重现问题所需的所有代码/数据。你能用叉子叉我的密码笔,让它出错吗?有关创建有用示例/演示的指导,请参阅。然后我们就可以了解bug是在你的代码中还是在fullCalendar中。这与其说是一个解决方案,还不如说是一个变通办法。我并没有说这是一个解决方案,它只是一个关于我所尝试的信息。如果你把它作为“答案”发布,如果它通过解决问题来回答问题,这是一个好主意,而不仅仅是展示一种忽视问题的方式。特别是因为,根据我对上述线程的评论,还没有确凿的证据表明该bug在fullCalendar中(因此,在等待发布修复程序时降级将是一个有用的解决方案)