Skip to content

vue error #3

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

Open
MiYogurt opened this issue Feb 12, 2017 · 3 comments
Open

vue error #3

MiYogurt opened this issue Feb 12, 2017 · 3 comments

Comments

@MiYogurt
Copy link

没有具体的行数,只是报错如下,怎么搞?

vue.runtime.common.js:521 [Vue warn]: Error when rendering component <ElForm>: 
Uncaught ReferenceError: _h is not defined

node 6.9.1
os: win 10

@okoala
Copy link
Owner

okoala commented Feb 12, 2017

@MiYogurt 目测应该是 Vue 和 Element 版本冲突,你把 Vue 和 Element 相关的依赖都升级到最新看看~

@MiYogurt
Copy link
Author

MiYogurt commented Feb 14, 2017

@okoala 老司机

 apollo-client                    ^0.4.20  →   ^0.8.5
 egg                               ^0.2.1  →  ^0.12.0
 egg-view-nunjucks                 ^0.5.0  →   ^1.0.0
 element-ui                    1.0.0-rc.7  →    1.1.6
 graphql                           ^0.7.1  →   ^0.9.1
 graphql-tag                      ^0.1.14  →   ^1.2.4
 graphql-tools                     ^0.7.2  →  ^0.10.0
 vuex-router-sync                  ^3.0.0  →   ^4.1.2
 @types/axios                     ^0.9.32  →  ^0.14.0
 @types/node                      ^6.0.45  →   ^7.0.5
 babel-plugin-component            ^0.4.3  →   ^0.9.0
 babel-preset-es2015-rollup        ^1.2.0  →   ^3.0.0
 cross-spawn                       ^4.0.2  →   ^5.0.1
 css-loader                       ^0.23.1  →  ^0.26.1
 egg-bin                               ^1  →       ^2
 egg-mock                          ^0.0.5  →   ^3.0.0
 eslint-config-vue                 ^1.1.0  →   ^2.0.2
 eslint-plugin-html                ^1.5.3  →   ^2.0.0
 file-loader                       ^0.9.0  →  ^0.10.0
 karma-webpack                     ^1.8.0  →   ^2.0.2
 memory-fs                         ^0.3.0  →   ^0.4.1
 npm-run-all                       ^3.1.0  →   ^4.0.1
 postcss-loader                   ^0.13.0  →   ^1.3.0
 selenium-server                  ^2.53.1  →   ^3.0.1
 ts-loader                         ^0.9.1  →   ^2.0.0
 vue-loader                        ^9.7.0  →  ^11.0.0
 vue-style-loader                  ^1.0.0  →   ^2.0.0
 webpack                          ^1.13.2  →   ^2.2.1
 webpack-dev-server               ^1.16.2  →   ^2.3.0
 webpack-prerender-spa-plugin      ^0.1.1  →   ^0.2.0

我用 ncu 检测了一下,版本变化太大了,更新下吧。

@MiYogurt
Copy link
Author

升级了一下,发现 vue-loader 还需要

npm i vue-template-compiler -D

通过自己的 debug 能力终于跑起来了。

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

2 participants