donmbelembe / vue-dragscroll

A vue directive to make a scrollable element scroll by draging to the scroll direction
https://vue-dragscroll.clebinfosys.com/
MIT License
256 stars 32 forks source link

Directive not SSR compliant #75

Open hannesaasamets opened 3 years ago

hannesaasamets commented 3 years ago

Any chance on making this directive SSR compliant? That would mean handling all the cases where window is accessed.

donmbelembe commented 3 years ago

Please feel free to send a PR

Le mer. 30 sept. 2020 à 07:47, hannesaasamets notifications@github.com a écrit :

Any chance on making this directive SSR compliant? That would mean handling all the cases where window is accessed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/donmbelembe/vue-dragscroll/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACP46PILYHS7Y3REOQFTH5TSILIBPANCNFSM4R6WGGPQ .

super-kamil commented 2 years ago

Same problem here. Unusable in (production) SSR environments. Throws very strange error

[Vue warn]: Failed to resolve async component: () => __webpack_require__.e(/*! import() */ 86).then(__webpack_require__.bind(null, /*! ./cms/elements/XXX */ "./cms/elements/XXX.vue"))
Reason: ReferenceError: self is not defined