Element: 2016.12.13 再次 _vm._h is not a function

Created on 13 Dec 2016  ·  18Comments  ·  Source: ElemeFE/element

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

question

Most helpful comment

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

All 18 comments

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

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

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

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

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

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

Vue packages version mismatch:
- [email protected]
- [email protected]

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

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

[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.

终于找到

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

这个问题太救命啦

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

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

手贱调了大半天

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

@eljefedelrodeodeljefe Yes, in a day or two.

1.0.7 已发布

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yorululu picture yorululu  ·  3Comments

fscardua picture fscardua  ·  3Comments

zhguokai picture zhguokai  ·  3Comments

yubo111 picture yubo111  ·  3Comments

chao-hua picture chao-hua  ·  3Comments