From e3720958d6c5017bd1ae81e0781bc20c850d12c4 Mon Sep 17 00:00:00 2001 From: Dinoosauro <80783030+Dinoosauro@users.noreply.github.com> Date: Sun, 21 Apr 2024 21:29:58 +0200 Subject: [PATCH] Try to change worker src import This error is only on the version deployed by GitHub Pages. I don't know why. --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 68eb5e0..14768dc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,7 +6,7 @@ import PdfObj from "./Components/PdfUI" import { PDFDocumentProxy } from "pdfjs-dist"; import * as PDFJS from "pdfjs-dist"; // @ts-ignore -import * as pdfjsWorker from "pdfjs-dist/build/pdf.worker.mjs"; +import * as pdfjsWorker from "pdfjs-dist/build/pdf.worker"; import { CustomProp } from "./Interfaces/CustomOptions"; import ThemeManager from "./Scripts/ThemeManager"; import Lang from "./Scripts/LanguageTranslations";