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

Unexpected token 'export' loading a Vue + Vite app #679

Closed
malizarraga opened this issue Dec 14, 2022 · 6 comments
Closed

Unexpected token 'export' loading a Vue + Vite app #679

malizarraga opened this issue Dec 14, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@malizarraga
Copy link

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?

@capricorn86
Copy link
Owner

Hi @malizarraga! 🙂

Support for ES6 modules has not been implemented yet.

There is a task for it here:
#320

How is your application setup? What are you using Happy DOM for? Usually there is a transpiler that takes care of imports.

@malizarraga
Copy link
Author

malizarraga commented Dec 21, 2022 via email

@capricorn86
Copy link
Owner

@malizarraga Happy DOM will implement support for ESM in the future. There are some more critical things that has to be addressed first.

@capricorn86 capricorn86 added the enhancement New feature or request label Dec 21, 2022
@malizarraga
Copy link
Author

Thanks again !!!

I will be monitoring this.

Thanks a lot for your quick response and great support.

@capricorn86
Copy link
Owner

@malizarraga there is now support for EcmaScript Modules in v17.0.0 🙂

@malizarraga
Copy link
Author

malizarraga commented Feb 6, 2025 via email

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

No branches or pull requests

2 participants