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

webpack.config.js疑问 #9

Closed
Plortinus opened this issue Nov 21, 2016 · 4 comments
Closed

webpack.config.js疑问 #9

Plortinus opened this issue Nov 21, 2016 · 4 comments

Comments

@Plortinus
Copy link

根据这个Issue,是不是需要添加vuealias

实际项目中,也用到别的插件,不加alias的话终端里会报[Vue warn]: You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

@QingWei-Li
Copy link
Contributor

如果你打算使用 runtime + compiler 版本的 Vue 的话就配置,不过大多数情况下都是选择预编译好模板(用 vue-loader 和 *.vue 文件)

@Plortinus
Copy link
Author

比如说,我在项目中用vue-region-picker的时候,就得加vuealias

@QingWei-Li
Copy link
Contributor

.......😂 那个是当初没理解 Vue 2 的这个特性,然后一直没修复 我这两天弄好

@yuanyuanshen
Copy link

这个问题是怎么导致的呢?

Uncaught TypeError: _vm._h is not a function
at Proxy.render (eval at (http://localhost:1314/dist/build.js:1301:1), :6130:46)
at VueComponent.Vue._render (eval at (http://localhost:1314/dist/build.js:820:1), :2952:22)
at VueComponent.eval (eval at (http://localhost:1314/dist/build.js:820:1), :2189:21)
at Watcher.get (eval at (http://localhost:1314/dist/build.js:820:1), :1652:27)
at new Watcher (eval at (http://localhost:1314/dist/build.js:820:1), :1644:12)
at VueComponent.Vue._mount (eval at (http://localhost:1314/dist/build.js:820:1), :2188:19)
at VueComponent.Vue$2.$mount (eval at (http://localhost:1314/dist/build.js:820:1), :5978:15)
at init (eval at (http://localhost:1314/dist/build.js:820:1), :2500:11)
at createComponent (eval at (http://localhost:1314/dist/build.js:820:1), :4052:9)
at createElm (eval at (http://localhost:1314/dist/build.js:820:1), :3995:9)

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

3 participants