Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Integrate Npm package with PCF

Hi experts!


Can you help me? I need to integrate bootstrap year calendar ( in a Custom Control for Dynamics 365. I have tried to install this component by npm as indicated in documentation:


In theory, when I build a Div element with a property data-provide="calendar" the calendar the calendar is built. I have tried this in local and this solution works but in the PCF not working. It's neccesary to add dependencies by import statement like this? -> 

import * as $ from "jquery";
In case I need to add dependencies, what should I add or where can I look at it?
Thank you!
Advocate V
Advocate V



Have a look at my repository It is for react but the general concept is the same for bootstrap. You have set your imports in index.ts and manage the calendar in init and updateView events.




Solution Sage
Solution Sage

All external JS libraries need to be referenced / imported within the index.ts file as otherwise they will be ignored.


Interestingly in my research it seems that that control has been deprecated and the same author has a new version at  and clear cut documentation.

If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Users online (6,173)