Open aysiscore opened 1 year ago
I have installed the package on the client side and it works, but when I refresh the page I get an SSR error:
TypeError: Cannot read properties of undefined (reading 'getSSRProps') at ssrGetDirectiveProps (\node_modules\@vue\server-renderer\dist\server-renderer.cjs.js:974:42)
The import of the package and app.use(Vue3TouchEvents) does not cause the issue.
app.use(Vue3TouchEvents)
The error only appears when I add a directive to the DOM like <li v-touch:swipe.left="next" v-touch:swipe.right="prev">
<li v-touch:swipe.left="next" v-touch:swipe.right="prev">
How can this package be used with SSR?
I have installed the package on the client side and it works, but when I refresh the page I get an SSR error:
TypeError: Cannot read properties of undefined (reading 'getSSRProps') at ssrGetDirectiveProps (\node_modules\@vue\server-renderer\dist\server-renderer.cjs.js:974:42)
The import of the package and
app.use(Vue3TouchEvents)
does not cause the issue.The error only appears when I add a directive to the DOM like
<li v-touch:swipe.left="next" v-touch:swipe.right="prev">
How can this package be used with SSR?