I am trying to use vue-dragscroll
with nuxtjs
.
I am new to nuxtjs
and I have been using vue-dragscroll
before with regular vuejs
.
I have been shown an error Window is not defined, I've looked at the vue-dragscroll
documentation and I still couldn't find the solution.
This is how I implemented the vue-dragscroll
<template lang="pug">
div
CountriesSearch.mb-2
div#countryList(v-for="country in countries" :key="country.country" v-dragscroll)
CountryItem(:country="country" v-if="country.Country")
</template>
<script>
import { dragscroll } from 'vue-dragscroll'
export default {
directives: {
dragscroll
},