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

2016.12.13 再次 _vm._h is not a function #1706

Closed
gugotim opened this issue Dec 13, 2016 · 18 comments
Closed

2016.12.13 再次 _vm._h is not a function #1706

gugotim opened this issue Dec 13, 2016 · 18 comments

Comments

@gugotim
Copy link

gugotim commented Dec 13, 2016

"element-ui": "^1.0.6",
"vue": "^2.1.5",
"vue-loader": "^9.7.0"
今天npm install安装后,任何使用el的组件都报错,包括最简单的123, 不使用el组件一切正常,

@QingWei-Li
Copy link
Contributor

Vue 2.1.5 将 _h 重命名为 _c,而 Element 目前发的版本都是用以前的 compiler 编译的,导致新版 runtime 无法运行 Element。目前的解决方案是锁定 Vue 的版本为 2.1.4

@chs97
Copy link

chs97 commented Dec 13, 2016

...刚刚手贱升级了vue于是炸了。。刚想提问就看到这个问题了

@QingWei-Li
Copy link
Contributor

不久我们将发布新版 看了下 complier 新版编译后的代码是可以与旧版 vue 兼容的

@chs97
Copy link

chs97 commented Dec 13, 2016

@QingWei-Li 不久是什么时候。。。今天能发么

@An0nymous0
Copy link

头疼。。。同样手贱升级了vue。 现在又降下去了。
"vue-template-compiler": "2.1.4"
"vue-loader": "10.0.0"
"vue": "2.1.4"

@gugotim
Copy link
Author

gugotim commented Dec 13, 2016

@An0nymous0 降到2.1.4可以正常编译和运行吗,配置已经改成"vue-template-compiler": "2.1.4"了,但是编译报错

Vue packages version mismatch:
- vue@2.1.4
- vue-template-compiler@2.1.5

@An0nymous0
Copy link

@gugotim vue-loader也要降级。 不可以用 vue-loader1.0.2. 1.0.2调用也改成了_c了。 所以必须降级。

@gugotim
Copy link
Author

gugotim commented Dec 13, 2016

@An0nymous0 我用了 "vue-loader": "10.0.0" ,终于可以了

@zlab
Copy link

zlab commented Dec 13, 2016

[Vue warn]: Property or method "_c" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

@GeoffZhu
Copy link

终于找到

@yuanyuanshen
Copy link

还好看了眼这里提问,还在seg上问了很久,没人回答。
npm remove 之前的高版本,然后安装以下版本,搞定
"vue-template-compiler": "2.1.4"
"vue-loader": "10.0.0"
"vue": "2.1.4"

@beijiaxu
Copy link

这个问题太救命啦

@OrangeOran
Copy link

····本地看了半天这个问题,然后去jsfiddle发现一样有问题。就觉得版本有问题了

@ifibercc
Copy link

我也是手贱第一次对项目的依赖做升级,然后导致了这个问题,看来要watch项目了,订阅一下邮件

@Cyonet
Copy link

Cyonet commented Dec 13, 2016

手贱调了大半天

@eljefedelrodeodeljefe
Copy link

Sorry to ask, but will this be fixed on on this module's side? If so what would be the timeframe? Cheers

@Leopoldthecoder
Copy link
Contributor

@eljefedelrodeodeljefe Yes, in a day or two.

@QingWei-Li
Copy link
Contributor

1.0.7 已发布

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

No branches or pull requests