maoberlehner / vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components
MIT License
1.18k stars 52 forks source link

v2-beta: Cannot read property 'length' of undefined #74

Closed simllll closed 3 years ago

simllll commented 3 years ago
TypeError: Cannot read property 'length' of undefined
    at VueComponent.mounted (LazyHydrate.esm.js?eb0b:187)
    at invokeWithErrorHandling (vue.runtime.esm.js?2131:1854)
    at callHook (vue.runtime.esm.js?2131:4219)
    at Object.insert (vue.runtime.esm.js?2131:3139)
    at invokeInsertHook (vue.runtime.esm.js?2131:6346)
    at Vue.patch [as __patch__] (vue.runtime.esm.js?2131:6494)
    at Vue._update (vue.runtime.esm.js?2131:3945)
    at Vue.updateComponent (vue.runtime.esm.js?2131:4060)
    at Watcher.get (vue.runtime.esm.js?2131:4479)
    at new Watcher (vue.runtime.esm.js?2131:4468)

I get this error with the new v2beta version.

Is the version already "ready" for testing? Let me know if I can help you debugging.

maoberlehner commented 3 years ago

Hi! Thanks for the report. Did you use import wrappers? If so, this should be fixed now.

simllll commented 3 years ago

Yes, we are using the import wrappers. I will test tomorrow and let You know. Thanks for the quick fix !