vue3-lazyload icon indicating copy to clipboard operation
vue3-lazyload copied to clipboard

Error using CDN and external JS file

Open PerryCodes opened this issue 4 months ago • 0 comments

Trying to use this with CDN and getting an error: [Vue warn]: A plugin must either be a function or an object with an "install" function.

index.html snippet:

<script src="https://unpkg.com/vue3-lazyload"></script>
<script src='https://website.com/content/app.js'></script>
...
<div id="app"></div>

app.js snippet:

const app = Vue.createApp({
   ...
});
app.use(VueLazyload);
app.mount('#app');

PerryCodes avatar Sep 29 '24 04:09 PerryCodes