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

Import not working #25

Open
DartVadius opened this issue Jun 4, 2024 · 1 comment
Open

Import not working #25

DartVadius opened this issue Jun 4, 2024 · 1 comment

Comments

@DartVadius
Copy link

DartVadius commented Jun 4, 2024

I do as example says import VueAuthenticate from 'vue-authenticate-2' and recieve an error export 'default' (imported as 'VueAuthenticate') was not found in 'vue-authenticate-2' (module has no exports).
What I am doing wrong?
Same thing when i try to import VueAuthenticatePlugin

@klues
Copy link

klues commented Jul 23, 2024

I had the same issue and solved it by using

resolve: {
   alias: {
       "vue-authenticate-2": 'vue-authenticate-2/dist/vue-authenticate.es.js'
   }
},

In my webpack.config.js. However I don't know why it's needed. However I got to an exception complaining about a missing $http. I'm on Vue2, so maybe this Version of the library only works with Vue3?! I'm now trying the original version from https://github.com/dgrubelic/vue-authenticate and the "Usage" docs from there, which seem to work better for Vue2.

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

No branches or pull requests

2 participants