Rename generated dist/auth0-vue.production.esm.js to dist/auth0-vue.production.esm.mjs #429
Open
6 tasks done
Labels
bug
This points to a verified bug in the code
Checklist
Description
I'm trying to use Astro + Vue in a yarn berry environment.
The auth0-vue package is working perfect in runtime vue but not during the build phase.
While building I get the error "Cannot use import statement outside a module". This is fixed by either:
The build breaks on the import statement itself so wrapping this in the normal "onMounted" will not work.
Basically the generated package is incorrect. Therefor I see this as a bug.
Reproduction
At this moment I do not have a straight forward reproducible example. If this is still needed for this ticket and if I decide to continue with auth0 I might consider making one.
Additional context
No response
auth0-vue version
2.3.3
Vue version
3.5.12
Which browsers have you tested in?
Chrome, Safari, Firefox
The text was updated successfully, but these errors were encountered: