vue-form-2
vue-form-2 copied to clipboard
Vue is not a constructor
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
这个问题解决了吗?
暂时用
import Vue from 'vue'
var bus = new Vue();
export default bus;
解决了问题