Fullcalendar momentTimezonePlugin 导致错误
Fullcalendar momentTimezonePlugin cause error
我正在使用最新版本的 Fullcalendar,我想按时区更改 nowIndicator,所以我找到了插件 MomentTimezone
当我将插件添加到日历选项的插件列表时:
plugins: [ momentTimezonePlugin, timeGridPlugin ],
我在 momentTimezonePlugin 中遇到了这个错误:
Property 'eventResizeJoinTransforms' is missing in type 'import("c:/Workspace/Monitoring/monitoring-ui/src/main/webapp/app/node_modules/@fullcalendar/moment-timezone/node_modules/@fullcalendar/common/main").PluginDef' but required in type 'import("c:/Workspace/Monitoring/monitoring-ui/src/main/webapp/app/node_modules/@fullcalendar/common/main").PluginDef'.ts(2741)
main.d.ts(938, 5): 'eventResizeJoinTransforms' is declared here.
这里是不同版本的库:
"@fullcalendar/angular": "5.5.0",
"@fullcalendar/core": "5.5.1",
"@fullcalendar/daygrid": "5.5.0",
"@fullcalendar/interaction": "5.5.0",
"@fullcalendar/list": "5.5.0",
"@fullcalendar/moment-timezone": "5.8.0",
"@fullcalendar/timegrid": "5.5.1",
你提到使用 Angular 8。恐怕你需要降级你的 FullCalendar 包版本或升级 Angular 到版本 9 如果你想避免使用带有 [= 的 FullCalendar 的奇怪问题20=].
支持的 Angular 版本
@fullcalendar/angular version 5 supports Angular 9 - 11.
我正在使用最新版本的 Fullcalendar,我想按时区更改 nowIndicator,所以我找到了插件 MomentTimezone
当我将插件添加到日历选项的插件列表时:
plugins: [ momentTimezonePlugin, timeGridPlugin ],
我在 momentTimezonePlugin 中遇到了这个错误:
Property 'eventResizeJoinTransforms' is missing in type 'import("c:/Workspace/Monitoring/monitoring-ui/src/main/webapp/app/node_modules/@fullcalendar/moment-timezone/node_modules/@fullcalendar/common/main").PluginDef' but required in type 'import("c:/Workspace/Monitoring/monitoring-ui/src/main/webapp/app/node_modules/@fullcalendar/common/main").PluginDef'.ts(2741)
main.d.ts(938, 5): 'eventResizeJoinTransforms' is declared here.
这里是不同版本的库:
"@fullcalendar/angular": "5.5.0",
"@fullcalendar/core": "5.5.1",
"@fullcalendar/daygrid": "5.5.0",
"@fullcalendar/interaction": "5.5.0",
"@fullcalendar/list": "5.5.0",
"@fullcalendar/moment-timezone": "5.8.0",
"@fullcalendar/timegrid": "5.5.1",
你提到使用 Angular 8。恐怕你需要降级你的 FullCalendar 包版本或升级 Angular 到版本 9 如果你想避免使用带有 [= 的 FullCalendar 的奇怪问题20=].
支持的 Angular 版本
@fullcalendar/angular version 5 supports Angular 9 - 11.