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 LoaderPlugin statement returns undefined object #24

Open
rwlaschin opened this issue Oct 15, 2020 · 0 comments
Open

Import LoaderPlugin statement returns undefined object #24

rwlaschin opened this issue Oct 15, 2020 · 0 comments

Comments

@rwlaschin
Copy link

rwlaschin commented Oct 15, 2020

"vue-google-login": "^2.0.5",

With version 2.0.5, it doesn't seem to export LoaderPlugin.

This is from the docs.

import { LoaderPlugin } from 'vue-google-login';
Then add the plugin to the Vue instance with the params, client_id is the only property required but you can add some optional.

Vue.use(LoaderPlugin, {
    client_id: CLIENT_ID
});

Line 321-325 in vue-google-login seem to add the objects to the exports but the values are undefined except for default.


Note: Using require instead of import shows all of the objects.
const GoogleLogin = require('vue-google-login');

{GoogleLogin: {…}, LoaderPlugin: {…}, default: {…}, __esModule: true}
GoogleLogin: {name: "GoogleLogin", props: {…}, methods: {…}, beforeCreate: ƒ, mounted: ƒ, …}
LoaderPlugin: {install: ƒ}
default: {name: "GoogleLogin", props: {…}, methods: {…}, beforeCreate: ƒ, mounted: ƒ, …}
__esModule: true
proto: Object

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

1 participant