Open weilengdezaoshang opened 1 year ago
The same problem occurs only when he refreshes or goes directly to the page after posting to the server. There is no problem jumping from other pages, and there is no problem with local testing, even if he uses vue-lazyload-ssr, it is the same bug.
I am also experiencing this problem
I am also experiencing this problem
In Nuxt 3, this error happened to me when I was registering the lazyload plugin only on client. You just need to register it both on client and server (remove .client
prefix from a Nuxt plugin file), just like this:
import VueLazyload from 'vue-lazyload';
import {defineNuxtPlugin} from '#imports';
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueLazyload);
});
This is just as problematic after packing
@hilongjw 希望作者尽快修复一下这个问题❤️
I saw in the issue of nuxt3 that the nuxt3 team is handling errors reported by plugins in nuxt3. I am not sure if this can be used to solve errors in SSR running nuxt3 team solution