删除app.vue里面的内容vue显示报错是为什么啊

来源:4-1 vue-cli的简介与使用

Meteor流星

2018-07-25 16:14

Failed to compile.

./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-04c2046b","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue
(Emitted value instead of an instance of Error)
  Error compiling template:
 
  123
 
  - Component template requires a root element, rather than just text.

@ ./src/App.vue 11:0-354
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

写回答 关注

1回答

  • 渠清
    2018-08-15 15:48:50

    用:template:"<li>123</li>"

vue2.5入门

快速理解Vue编程理念上手Vue2.0开发。

146742 学习 · 657 问题

查看课程

相似问题