Home > Software engineering >  How could I use FullCalendar Module in angular
How could I use FullCalendar Module in angular

Time:02-03

I am using FullCalendar from angular primeng but it is giving me an error:

"Cannot find module '@fullcalendar/angular' or its corresponding type declarations" after import it into app-module.

I have attached a screenshot.

enter image description here

I want to use FullCalender in my angular project. I have run a command :

npm install @fullcalendar/core @fullcalendar/list @fullcalendar/timegrid @fullcalendar/interaction.

and after that I am trying to import it in app-module but is giving an error. Is there anything that I have missed in my code. I am referring https://primeng.org/fullcalendar for demo and going step by step.

I have got some solutions on Internet but not working - I have tried command: npm install [email protected] --save

I think something else is there that I don't know. Please help

CodePudding user response:

The error message is actually quite helpful this time - you really are missing the @fullcalendar/angular package.

Run this in the command line:

 npm install @fullcalendar/core @fullcalendar/list @fullcalendar/timegrid @fullcalendar/interaction @fullcalendar/angular

I simply added @fullcalendar/angular at the end.

  • Related