vue-sticky-directive
vue-sticky-directive copied to clipboard
The directive causes SSR fail
Once I render page by vue-server-renderer, the page component using vue-sticky-directive
will render fail with error "ReferenceError: window is not defined".
https://github.com/mehwww/vue-sticky-directive/blob/master/src/index.js#L7
@dreamerblue workaround, if you're using bundler, I'm using is:
import Sticky from 'vue-sticky-directive/src/sticky';
Vue.directive('Sticky', Sticky);