hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
7.99k stars 865 forks source link

[Vue warn]: Failed to resolve directive: lazy (getting this error since last update) #491

Open fanopolis opened 2 years ago

fanopolis commented 2 years ago

Suddenly vue-lazyload stopped working. I tried going back to the previous version but I still get the same error.

[Vue warn]: Failed to resolve directive: lazy

It was working yesterday so I suspect it has something to do with the latest update. However, manually choosing the previous version also did not help. Does someone know how to fix this?

gkoberger commented 2 years ago

I had the same problem. Reverting back to 1.3.3 worked for me (1.3.4 also had the same error, for some reason).

Details: I was using the unpkg CDN provided in the docs, and it seems like it broke sometime today. I tried a bunch of things (I assume it's a conflict w/ another script I have), but ultimately just went with explicitly loading 1.3.3.

frallisland commented 2 years ago

I get the same question, expect the solution for the odd error!!!

leo43555483 commented 1 year ago

I get the same question, expect the solution for the odd error!!!

截屏2023-02-18 16 05 16

It seems that the latest version does not support vue2, but they returned an error