PrimeNG 完整日历 11.2 + 角度 11 不起作用 - 找不到命名空间'FullCalendarVDom'



我用Angular 11创建了一个strictfresh项目,并安装了PrimeNG 11.2。

我遵循这里的步骤https://primefaces.org/primeng/showcase/#/fullcalendar

但是一旦我导入了这些
import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';
[39m
Error: node_modules/@fullcalendar/common/vdom.d.ts:9:35 - error TS2503: Cannot find namespace 'FullCalendarVDom'.
9 export import ComponentChildren = FullCalendarVDom.ComponentChildren;
~~~~~~~~~~~~~~~~

我还尝试在tsconfig和angular.json中将strict改为false。

我从图书馆的Discord频道得到了我的答案。

似乎……不支持X版本,他们让我使用4.1.0,结果成功了。

下面可以看到完整的答案

什么是FullCalendar版本,他们的最新版本有一些问题。我想PrimeNG现在支持4.1.0,5。不支持X。如果这是紧急的,你也可以尝试FullCalendar的官方angular包装器。在未来,我们计划实现我们自己的Scheduler组件,而不是使用FullCalendar。

最新更新