Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Vite #124

Closed
stefanwuthrich opened this issue Jul 8, 2024 · 2 comments
Closed

Error with Vite #124

stefanwuthrich opened this issue Jul 8, 2024 · 2 comments

Comments

@stefanwuthrich
Copy link

With:

  • vue-pdf 1.10.0
  • vue 3.4.27
  • vite 5.3.3
    I get this below, when I run yarn dev

[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
Copy link
Owner

TaTo30 commented Jul 8, 2024

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

@TaTo30 TaTo30 closed this as completed Jul 8, 2024
@stefanwuthrich
Copy link
Author

thank you very much. resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants