Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

PrimeNG Full Calendar 11.2 + Angular 11 not working - Cannot find namespace 'FullCalendarVDom'

I created a strict fresh project with Angular 11 and I installed PrimeNG 11.2.

I followed the steps here https://primefaces.org/primeng/showcase/#/fullcalendar

But as soon as I import these

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;
                                    ~~~~~~~~~~~~~~~~

I also tried by turning strict to false in tsconfig and angular.json.

question from:https://stackoverflow.com/questions/66046877/primeng-full-calendar-11-2-angular-11-not-working-cannot-find-namespace-ful

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I got my answer from the Discord channel of the library.

It seems that 5.x versions are not supported, and they pointed me to use 4.1.0 and that worked.

Bellow you can see the full answer

What is the FullCalendar version, their latest version has some issues. I think PrimeNG supports 4.1.0 right now, 5.x is not supported. If this is urgent, you may try the official angular wrapper of FullCalendar as well. In the future, we're planning to implement our own Scheduler component and not use FullCalendar.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...