-
Notifications
You must be signed in to change notification settings - Fork 326
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
Unable to load ESM modules using ui.script #2331
Labels
feature
Feature request
Comments
marek-mihok
added a commit
that referenced
this issue
May 15, 2024
5 tasks
mturoci
pushed a commit
that referenced
this issue
May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe
Latest versions of
pdfjs
are built as JavaScript modules (.mjs
). When trying to load it withui.script()
I'm getting the following errorUncaught SyntaxError: Unexpected token 'export' (at pdf.min.mjs:4108:1)
.Describe the solution you'd like
Add the
type
attribute toui.script()
and be able to specifytype="module"
attribute to HTML <script> element as specified here https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type.The text was updated successfully, but these errors were encountered: