Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make it work with Rollup #27

Open
SergeiMinaev opened this issue Mar 4, 2020 · 1 comment
Open

Can't make it work with Rollup #27

SergeiMinaev opened this issue Mar 4, 2020 · 1 comment

Comments

@SergeiMinaev
Copy link

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",
@vankhanhpr
Copy link

install moment and
var moment = require("moment");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants