There seems to be an issue with adding vue smooth scroll to my nuxt.js project as I'm encountering the "window is not defined error".
The steps I followed were:
yarn add vue2-smooth-scroll
Within the vue file, I included:
import Vue from 'vue';
import vueSmoothScroll from 'vue2-smooth-scroll';
Vue.use(vueSmoothScroll);