vue-date-picker
vue-date-picker copied to clipboard
Can't make it work with Rollup
main.ts:
//@ts-ignore
import datepicker from 'vue-date-picker'
Vue.component('datepicker', datepicker);
Rollup returns an error:
Error: 'default' is not exported by node_modules/vue-date-picker/dist/datepicker.common.js
Package versions:
"vue": "^2.6.11",
"rollup": "^1.32.0",
"vue-date-picker": "^2.5.0",
install moment and var moment = require("moment");