Closed ralphwest1 closed 2 years ago
I had to change the following line in PdfViewer.svelte: import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry"; to import "pdfjs-dist/build/pdf.worker.entry"; I only have the changes in a local copy of the project, but perhaps worth a shot. My project isn't using SvelteKit, but is using Vite.
Hi, @ralphwest1 Please try with the latest svelte-pdf v.1.0.10, fixed error : it doesn't have "type": "module" or an .mjs extension for the entry point
@vinodnimbalkar This can be closed too?
When I try to add to SvelteKit v1.0.0-next.230, I get the below error:
Here is the implementation:
Please advise if there is something I can change to make it work it SvelteKit?