vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

error : exports is not defined

Open ghost opened this issue 7 years ago • 2 comments

Uncaught ReferenceError: exports is not defined at eval (eval at (app.js:1653), :12:23) at Object. (app.js:1653) at webpack_require (app.js:660) at fn (app.js:86) at eval (eval at (app.js:1963), :8:3) at Object. (app.js:1963) at webpack_require (app.js:660) at fn (app.js:86) at eval (eval at (app.js:1674), :2:73) at Object. (app.js:1674)

ghost avatar Jun 20 '17 12:06 ghost

I've got the same error, my solution to the problem is like this:

  1. "npm install monment"
  2. copy "vue-datepicker-es6.vue" to your project(u can modify the file name)
  3. "import datePicker from '@/components/common/datePicker'" ,then copy the code from the demo

michaelzhouh avatar Jun 22 '17 05:06 michaelzhouh

import myDatepicker from 'vue-datepicker/vue-datepicker-es6.vue';

Teemwu avatar Sep 12 '17 06:09 Teemwu