一、Error compiling template: Component template requires a root element, rather than just text. 這個錯誤意思是,每一個組件中的模板必須含有根元素,不能直接寫文本
二、Do not use built-in or reserved HTML elements as component id: div 不用把html元素當做組件的名稱去使用
三、Unknown custom element: <as> - did you register the component correctly? For recursive components, make sure to provide the "name" option. 組件名稱沒有被解析
四、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. 模板有且只能有一個根標簽
五、Property or method "msg" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. msg沒有定義
六、The "data" option should be a function that returns a per-instance value in component definitions 組件中的data應該是一個函數
七、The data property "msg" is already declared as a prop. Use prop default value instead. 這個錯誤的意思是,你已經定義了一個prop 是msg,那么data屬性就沖突了,並且被替代為prop ,prop不能喝data重復