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

vue-core-image-upload import 失败 #98

Open
wjsq0705 opened this issue Jul 10, 2017 · 4 comments
Open

vue-core-image-upload import 失败 #98

wjsq0705 opened this issue Jul 10, 2017 · 4 comments

Comments

@wjsq0705
Copy link

ERROR in .//.2.3.3@vue-core-image-upload/dist/crop.vue
Module build failed: TypeError: this._init is not a function
at Object.Vue$3 (D:\workspace_wj\deshineAdmin\node_modules.2.3.4@vue\dist\v
ue.runtime.common.js:4093:8)
@ ./
/.6.4.1@babel-loader/lib!.//.10.3.0@vue-loader/lib/selector.js?type=scrip
t&index=0!./
/.2.3.3@vue-core-image-upload/dist/vue-core-image-upload.vue 51:12-
33

ERROR in .//.2.3.3@vue-core-image-upload/dist/resize-bar.vue
Module build failed: TypeError: this._init is not a function
at Object.Vue$3 (D:\workspace_wj\deshineAdmin\node_modules.2.3.4@vue\dist\v
ue.runtime.common.js:4093:8)
@ ./
/.6.4.1@babel-loader/lib!.//.10.3.0@vue-loader/lib/selector.js?type=scrip
t&index=0!./
/.2.3.3@vue-core-image-upload/dist/vue-core-image-upload.vue 55:17-
44

@wjsq0705
Copy link
Author

谁帮忙看下,在 import VueCoreImageUpload from 'vue-core-image-upload' 的时候就报了上面的错误 vue版本也是2.0+的 vue-core-image-upload版本用的是2.3.3

@yuanwyj
Copy link

yuanwyj commented Jul 13, 2017

问题解决了吗,我也遇到同样的问题

@unliar
Copy link

unliar commented Sep 2, 2017

vuejs/vue-loader#409 @yuanwyj @wjsq0705 我觉得你们需要这个

vue-cli里的 webpack.base.config.js 里面loader 换成 vue-loader

test: /\.vue$/,
        loader: 'vue-loader'

@slimeball
Copy link
Contributor

我的是原有项目。我一直用的就是vue-loader。版本2.4.1就会报这个错。使用指定版本2.2.4就不会报错。不知道原因在哪。

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

4 participants