![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错总结
...
Loving&Living
这个作者很懒,什么都没留下…
展开
-
ERROR:connect ETIMEDOUT
解决npm config set registry https://registry.npm.taobao.org原创 2021-06-02 13:34:33 · 1150 阅读 · 0 评论 -
Avoid using non-primitive value as key, use string/number value instead.报错
Avoid using non-primitive value as key, use string/number value instead.翻译:避免使用非基元值作为键,而是使用字符串/数字值。错误原因:Vue 中渲染列表是key 产生了重复, 此时应该去检查与key 有关的代码<ul class="list-group"> <CommentDel v-for="content in comments" :key="content.id" :content="cont原创 2020-11-19 16:03:05 · 394 阅读 · 0 评论 -
Unknown custom element: <CommentDel> - did you register the component correctly? For recursive comp
Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.报错解决翻译:未知的自定义元素:-是否正确注册了组件?对于递归组件,请确保提供“name”选项。也就是组件没有注册成功,要检查配置对象中的components是否书写错误export default { name: "CommentLi原创 2020-11-19 10:22:07 · 700 阅读 · 0 评论 -
Duplicate keys detected: ‘1‘. This may cause an update error. 报错解决
Duplicate keys detected: ‘1’. This may cause an update error. 报错解决Duplicate keys detected:检测到重复的密钥错误原因:可能是判断条件写错,比如:if(item.id = id) { //只写了一个等号 return { ...item, age: ++item.age }}应该为全等:if(item.id === id) { //原创 2020-11-15 23:10:28 · 804 阅读 · 0 评论 -
Invalid shorthand property initializer 报错解决
Invalid shorthand property initializer 报错解决users:[ {id="1", name="suzy",age:23}, {id="2", name="suzy",age:23}, {id="3", name="suzy",age:23},]错误原因:在对象中属性与其对应的值之间使用“=”解决:users:[ {id:"1", name:"suzy",age:23}, {id:"2", name:"suzy",age原创 2020-11-15 22:38:46 · 1185 阅读 · 0 评论