TaTo30 / vue-pdf

PDF component for Vue 3
https://tato30.github.io/vue-pdf/
MIT License
424 stars 62 forks source link

Error with Vite #124

Closed stefanwuthrich closed 3 months ago

stefanwuthrich commented 3 months ago

With:

[ERROR] Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)

node_modules/pdfjs-dist/build/pdf.mjs:19764:53:
  19764 │ ...rts__ = globalThis.pdfjsLib = await (globalThis.pdfjsLibPromise =...
        ╵                                  ~~~~~

that did not happen with earlier vite/vue versions

TaTo30 commented 3 months ago

That was an Issue with the recently versions of pdfjs, You can find details and solution here #115

stefanwuthrich commented 2 months ago

thank you very much. resolved.