-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Unexpected token 'export' loading a Vue + Vite app #679
Comments
Hi @malizarraga! 🙂 Support for ES6 modules has not been implemented yet. There is a task for it here: How is your application setup? What are you using Happy DOM for? Usually there is a transpiler that takes care of imports. |
Hi David,
We have a weird setup, it is not perfect but was working before with JSDom
and Vue (using VUE CLI not VITE) basically before to be ESM.
Basically we need the rendered result of a Vue app, using
JSDom was kind of simple, so once we have that rendered result we are
using the DOM to build a new HTML with all the resources inline and we
convert the HTML to PDF.
For now this is a Bug for us and I was wondering if Happy
Dom will be doing this kind of thing in the future.
|
@malizarraga Happy DOM will implement support for ESM in the future. There are some more critical things that has to be addressed first. |
Thanks again !!! I will be monitoring this. Thanks a lot for your quick response and great support. |
@malizarraga there is now support for EcmaScript Modules in v17.0.0 🙂 |
Thanks a lot David !!!
Great work. 😎
…On Wed., Feb. 5, 2025, 5:11 p.m. David Ortner, ***@***.***> wrote:
@malizarraga <https://github.com/malizarraga> there is now support for
EcmaScript Modules in v17.0.0 🙂
—
Reply to this email directly, view it on GitHub
<#679 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKC5FMLBWFPB555Z5V2SB4T2OKSDZAVCNFSM6AAAAABWSJFASKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZYGMYTMMRRGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've got the "Unexpected token 'export'" error when loading a vue + vite application. I'm assuming is not parsing the main javascript correctly, is this something that should be supported?
The text was updated successfully, but these errors were encountered: