-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Module not found: Can't resolve 'pdfjs-dist/build/pdf.worker.mjs'
81 | // We import this here so that it's only loaded during client-side rendering.
82 | const pdfJS = await import("pdfjs-dist");
83 | pdfJS.GlobalWorkerOptions.workerSrc = require("pdfjs-dist/build/pdf.worker.mjs");
| ^
84 | const pdf = await pdfJS.getDocument(templateBytes).promise;
85 |
86 | setTotalPages(pdf.numPages);
Metadata
Metadata
Assignees
Labels
No labels