vue常见错误
来源:互联网 发布:java assert 用法 编辑:程序博客网 时间:2024/06/18 04:39
初学vue常见一些错误,常常一脸蒙逼...觉得应该记录一下。
ERROR in ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-8b4df900","hasScoped":false,"transformToRequire":{"video":"src","source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/App.vue
(Emitted value instead of an instance of Error)
Error compiling template:
<h1>mint-ui-example</h1>
<mt-button
type="primary"
@click="sheetVisible">
选择操作
</mt-button>
- Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
@ ./src/App.vue 6:0-351
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
(Emitted value instead of an instance of Error)
Error compiling template:
<h1>mint-ui-example</h1>
<mt-button
type="primary"
@click="sheetVisible">
选择操作
</mt-button>
- Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
@ ./src/App.vue 6:0-351
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
总结 :
vue模板只能有一个根对象,另外要用div或别的元素包裹全部的元素
阅读全文
0 0
- vue 常见错误
- vue常见错误
- vue开发常见错误总结
- 技术文章 | vue工具帮你解决常见的错误与陷阱
- vue + elementUI++Vue常见的坑
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- Drawable 使用方法详解
- Java中的多线程你只要看这一篇就够了
- 自定义view:波浪
- Python数据处理技巧
- Recyclerview的使用 是代替了Listview和Gridview
- vue常见错误
- C语言之内存对齐(一)
- UML类图与类的关系详解
- shell 编程之变量
- C++内存探讨 New与delete
- web服务器与应用服务器区别
- Spring Cloud Eureka 入门 (三)服务消费者详解
- GDB调试的基本命令使用。
- bvlc_reference_caffenet.caffemodel模型的应用