Closed alamenai closed 4 years ago
@MenaiAla this work for me
datepicker.js
import Vue from 'vue'
import 'vue2-daterange-picker/dist/vue2-daterange-picker.css'
Vue.component('b-daterange', require('vue2-daterange-picker').default)
Thanks @Kronhyx :)
When I run this in production, The CSS doesn't seem like it compiles, so I get a display without styles. Any idea why?
In Nuxt.js plugins we define our external components and we use them globally across the project, but my nuxt project could not register and display the component.
date-picker.js plugin:
nuxt.config.js configuration:
DatePicker.vue component :
Browser Console :
Visual Studio Code hint :