function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Javier SánchezJavier Sánchez 

js library doesn't load with ltng:require in component

Hi!
I'm trying to import the pdfmake js library into my component but the script in afterScriptsLoaded never fires, I try with other libraries as chartjs, and that one works propertly, also I try with jsPDF but doesn't work

Any ideas?
AbhinavAbhinav (Salesforce Developers) 
Hi Javier,

Please elaborate you post by attaching some code snippet so that community can help you better .
 
Javier SánchezJavier Sánchez
Hi Abhinav
The piece of code is that
<ltng:require scripts="{!$Resource.pdfMake}" afterScriptsLoaded="{!c.alertTest3}"/>
But the function in afterScriptsLoaded tag never runs