-
Notifications
You must be signed in to change notification settings - Fork 6
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
Component does not work with Vaadin 23.3 #25
Comments
PDF.js a such is not fully, compatible with vite: see mozilla/pdf.js#10317 (comment) However workaround may exists to import the worked differently https://erindoyle.dev/using-pdfjs-with-vite/ Meanwhile, there is webpack fallback option in Vaadin 23, which allows to use the add-on in the current form. |
I forgot to mention, that we are already using Vaadin 23.2 with vite, so its not (only) a vite issue. |
Fix has been released in version 2.5.3 |
I tried upgrading my project from Vaadin 23.2 to 23.3.
Unfortunately I get the following error:
SyntaxError: The requested module '/VAADIN/generated/jar-resources/print-js/dist/print.js' does not provide an export named 'default'
The issue can be reproduced with a Vaadin starter:
MainView.java
:It seems like there is a problem with pdf-js and vite but we are already using Vaadin 23.2 with vite so the issue is not related to vite only.
The text was updated successfully, but these errors were encountered: