Closed tigerclaw-az closed 10 months ago
I have a SFC called InputDatePicker.vue that imports the calendar component:
InputDatePicker.vue
import Calendar from 'vue2-slot-calendar'; export default { name: 'InputDatePicker', components: { calendar: Calendar, }, ... }
This will throw an error on Internet Explorer browsers due to the untranspiled JS inside the Calendar.vue file from node_modules.
I tried configuring the component with
import Calendar from 'vue2-slot-calendar'; Vue.component('calendar', Calendar);
but that completely broke and the application never loaded.
I believe you need to setup the library so it can be included as a "plugin": https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html
I have a SFC called
InputDatePicker.vue
that imports the calendar component:This will throw an error on Internet Explorer browsers due to the untranspiled JS inside the Calendar.vue file from node_modules.
I tried configuring the component with
but that completely broke and the application never loaded.
I believe you need to setup the library so it can be included as a "plugin": https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html