我使用Angular 11创建了一个strict fresh项目,并安装了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。
发布于 2021-02-04 21:55:07
我从图书馆的不和谐频道得到了答案。
似乎5.x版本不受支持,他们建议我使用4.1.0,这很管用。
下面你可以看到完整的答案
的FullCalendar版本是什么,他们的最新版本有一些问题。我认为PrimeNG现在支持4.1.0,不支持5.x。如果这是紧急情况,您也可以尝试FullCalendar的官方angular包装器。将来,我们计划实现我们自己的调度器组件,而不使用FullCalendar。
https://stackoverflow.com/questions/66046877
复制相似问题