Despite my efforts, I can't seem to get rid of this persistent error...:(
First. the issue-
The "vuejs-datepicker" component works perfectly on initial page load.
However, upon reloading the page, a "Reference Error" pops up...
error screenshot
Second. what I have tried-
added /plugins/vuejs-datepicker file
import Vue from 'vue'; import Datepicker from 'vuejs-datepicker'; Vue.use(Datepicker);
included
in nuxt.config.jsplugins : [{ src: '~plugins/vuejs-datepicker', ssr: false }]
used
client-only
in the template<client-only> <datepicker :inline="true"></datepicker> </client-only>
Third. attempted solutions-
- modified the /plugins/vuejs-datepicker file,
replacedVue.use(Datepicker)
withVue.component('vuejs-datepicker',DatePicker)
- in vue script section,
changedcomponents: {datepicker}
tocomponents: {'datepicker': () => import('vuejs-datepicker')},
So, what should be my next step??
Any suggestions?
Thanks..