vue-form-2 icon indicating copy to clipboard operation
vue-form-2 copied to clipboard

Vue is not a constructor

Open matt-burgess opened this issue 8 years ago • 2 comments

The addition of this line

import VueForm2 from 'vue-form-2';

Produces this error:

Uncaught TypeError: Vue is not a constructor at eval (webpack-internal:///106:5) at Object. (admin_job_edit.js:378) at webpack_require (vendor.js:1333) at fn (vendor.js:751) at eval (webpack-internal:///315:2) at Object. (admin_job_edit.js:1186) at webpack_require (vendor.js:1333) at fn (vendor.js:751) at eval (webpack-internal:///129:19) at Object. (admin_job_edit.js:437)

Vue v2.4.2

matt-burgess avatar Aug 02 '17 18:08 matt-burgess

这个问题解决了吗?

dongbinx avatar May 04 '18 05:05 dongbinx

暂时用 import Vue from 'vue' var bus = new Vue(); export default bus; 解决了问题

dongbinx avatar May 04 '18 06:05 dongbinx