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

Fix lazy dir can't be registered when SSR #503

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

anc95
Copy link

@anc95 anc95 commented Nov 24, 2022

Hey, the error detail is in #502

I dive into the issue, it's because when we import vue-lazyload

import Lazyload from 'vue-lazyload'

console.log(Lazyload)

will get

{
  default: {
    install
  }
}

if follow the instruction in readme

App.use(Lazyload)

it can't be registered in Node env

So I modified the export from default export to named export to avoid this happen.

Please review, Thanks

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

Successfully merging this pull request may close these issues.

None yet

1 participant