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

Comments

Projects
None yet
@gugotim

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

This comment has been minimized.

Show comment
Hide comment
@QingWei-Li

QingWei-Li Dec 13, 2016

Member

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

Member

QingWei-Li commented Dec 13, 2016

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

@chs97

This comment has been minimized.

Show comment
Hide comment
@chs97

chs97 Dec 13, 2016

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

chs97 commented Dec 13, 2016

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

@QingWei-Li

This comment has been minimized.

Show comment
Hide comment
@QingWei-Li

QingWei-Li Dec 13, 2016

Member

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

Member

QingWei-Li commented Dec 13, 2016

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

@chs97

This comment has been minimized.

Show comment
Hide comment
@chs97

chs97 Dec 13, 2016

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

chs97 commented Dec 13, 2016

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

@An0nymous0

This comment has been minimized.

Show comment
Hide comment
@An0nymous0

An0nymous0 Dec 13, 2016

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

An0nymous0 commented Dec 13, 2016

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

@gugotim

This comment has been minimized.

Show comment
Hide comment
@gugotim

gugotim 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

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

This comment has been minimized.

Show comment
Hide comment
@An0nymous0

An0nymous0 Dec 13, 2016

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

An0nymous0 commented Dec 13, 2016

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

@gugotim

This comment has been minimized.

Show comment
Hide comment
@gugotim

gugotim Dec 13, 2016

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

gugotim commented Dec 13, 2016

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

@zlab

This comment has been minimized.

Show comment
Hide comment
@zlab

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

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

This comment has been minimized.

Show comment
Hide comment
@GeoffZhu

GeoffZhu Dec 13, 2016

终于找到

GeoffZhu commented Dec 13, 2016

终于找到

@yuanyuanshen

This comment has been minimized.

Show comment
Hide comment
@yuanyuanshen

yuanyuanshen Dec 13, 2016

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

yuanyuanshen commented Dec 13, 2016

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

@beijiaxu

This comment has been minimized.

Show comment
Hide comment
@beijiaxu

beijiaxu Dec 13, 2016

这个问题太救命啦

beijiaxu commented Dec 13, 2016

这个问题太救命啦

@OrangeOran

This comment has been minimized.

Show comment
Hide comment
@OrangeOran

OrangeOran Dec 13, 2016

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

OrangeOran commented Dec 13, 2016

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

@ifibercc

This comment has been minimized.

Show comment
Hide comment
@ifibercc

ifibercc Dec 13, 2016

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

ifibercc commented Dec 13, 2016

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

@Cyonet

This comment has been minimized.

Show comment
Hide comment
@Cyonet

Cyonet Dec 13, 2016

手贱调了大半天

Cyonet commented Dec 13, 2016

手贱调了大半天

@eljefedelrodeodeljefe

This comment has been minimized.

Show comment
Hide comment
@eljefedelrodeodeljefe

eljefedelrodeodeljefe Dec 13, 2016

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

eljefedelrodeodeljefe commented Dec 13, 2016

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

@Leopoldthecoder

This comment has been minimized.

Show comment
Hide comment
@Leopoldthecoder

Leopoldthecoder Dec 13, 2016

Member

@eljefedelrodeodeljefe Yes, in a day or two.

Member

Leopoldthecoder commented Dec 13, 2016

@eljefedelrodeodeljefe Yes, in a day or two.

@QingWei-Li

This comment has been minimized.

Show comment
Hide comment
@QingWei-Li

QingWei-Li Dec 14, 2016

Member

1.0.7 已发布

Member

QingWei-Li commented Dec 14, 2016

1.0.7 已发布

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