-
Notifications
You must be signed in to change notification settings - Fork 109
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
Strange import behavior with pdfjs v4 #614
Comments
There's a similar issue building with embroider, where the application route class is an unresolved promise: Which manifests as an error:
It seems that any module importing pdfjs will have its own exports broken. For example, in my app, a service imports pdfjs and all Reproduction is on the |
The commentary in embroider-build/embroider#1948 (comment) also applies here. And the same workaround should apply. The only difference is that for ember-auto-import you must make sure you opted in to dynamic import support. |
Repro here: https://github.com/dwickern/ember-pdfjs-reproduction
In pdfjs v4 the project was converted to ESM. After upgrading pdfjs from v3 to v4, its default export is an unresolved promise:
To get it working, you actually have to
await
the imported module:dwickern/ember-pdfjs-reproduction@f8aa137
Expected behavior: importing a module should resolve it
The text was updated successfully, but these errors were encountered: