nielsonrolim PRO
Joined 9/14/2018
nielsonrolim PRO said about 1 year ago on PDF Reader :
In version 5.0.375 there is no pdf.worker.entry.js file anymore. Only the pdf.worker.mjs file.

I managed to make it work with this workaround:
import workerSource from 'pdfjs-dist/build/pdf.worker.min.mjs?raw';

// (...)

  connect() {
    const blob = new Blob([workerSource], { type: 'application/javascript' });
    GlobalWorkerOptions.workerSrc = URL.createObjectURL(blob);
    this.loadPdf();
  }