Hot answers tagged

2 votes

Trouble loading PDF.js lib in LWC

When you do loadScript you need to point it to the .js file in your static resource, not just the folder name. For example, instead of loadScript(this, pdfjs), you need to do loadScript(this, pdfjs + &...
fred's user avatar
  • 2,743

Only top scored, non community-wiki answers of a minimum length are eligible