报错

495 阅读1分钟

1.The computed property "name" is already defined in data.

计算属性“name”已在数据中定义

计算属性名与data数据名相同报错

2.Property or method "menuSelect" 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

属性或方法“menuSelect”未在实例上定义,但在渲染期间被引用。确保此属性是被动的,无论是在数据选项中,还是对于基于类的组件

未定义该属性、方法

3.Failed to mount component: template or render function not defined.

未能装载组件:未定义模板或渲染函数。

没有在components中定义

4.Property or method "activeName" 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.

属性或方法“activeName”不是在实例上定义的,而是在渲染期间引用的。通过初始化属性,确保此属性在数据选项中或对于基于类的组件是被动的。

data没有定义activeName

5.Duplicate keys detected: 'tab-0'. This may cause an update error. v-for的key重复了

Do not use built-in or reserved HTML elements as component id: footer 不要将内置或保留的HTML元素用作组件id:footer

script中name或components中定义与html已有标签命名重复

6.vue找不到没有后缀名的文件 error in nextTick: "InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('304') is not a valid name."