3👍
✅
After several attempt, I understood that the component has to be registered in the plugin. Vue.use
does not work in generated code.
My final working code is the following:
/plugins/vue-tailwind.js
import Vue from 'vue'
import { TDatepicker } from 'vue-tailwind/dist/components';
Vue.component('t-datepicker', TDatepicker)
1👍
I’ve got the same problem and that could be fixed by setting ssr: false
in the nuxt.config.js
export default {
ssr: false,
target: 'static'
}
Source:stackexchange.com