
本篇文章分享错误error The template requires child element ,对你有帮助的话记得收藏一下,看极客大全收获更多编程知识
错误(1):error The template requires child element vue/valid-template-root
这个错误只要将<template></template>中加上div就行了
错误(2):Component name "helloworld" should always be multi-word vue/multi-word-component-names
这个是语法错误,需要在vue.config.js中加上lintOnSave:false关闭语法检查,错误(1)也可以这样设置
原文链接:https://www.cnblogs.com/prprprpr/p/16544938.html