I'm all new with Nuxt so this might be stupid question.
I have a Nuxt project where I want to use this plugin vue-airbnb-style-datepicker
I fallowed the installation and installed this to my project:
npm install vue-airbnb-style-datepicker --save
npm install date-fns
then in the plugins folder I made a file called vue-airbnb-datepicker.js and added this code inside
import Vue from 'vue'
import AirbnbStyleDatepicker from 'vue-airbnb-style-datepicker'
import 'vue-airbnb-style-datepicker/dist/styles.css'
const datepickerOptions = {}
Vue.use(AirbnbStyleDatepicker, datepickerOptions)
then in the nuxt.config.js I added my plugin
plugins: ['~/plugins/vue-airbnb-datepicker.js'],
After all this when i run my app i got
ReferenceError Element is not defined
I can post the full error message but I do not think that is relevant.