auth0 / auth0-vue

Auth0 authentication SDK for Vue.js apps
Other
140 stars 27 forks source link

Rename generated dist/auth0-vue.production.esm.js to dist/auth0-vue.production.esm.mjs #429

Open joostvdwsd opened 3 weeks ago

joostvdwsd commented 3 weeks ago

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