完整报错信息

Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

报错翻译

无关的非道具属性(类)被传递给组件,但不能被自动继承,因为组件呈现片段或文本根节点。

存在的问题

根据报错信息
首先检查是否传递了没有解析的属性,可以检查一下你用的第三方的组件,或者自己编写的组件,是否 存在没有解析的属性,例如:class等属性

其次,还有一个重要原因是组件呈现片段或文本根节点,即组件暴露在了最外层。也就是vue内置或封装的组件、使用的第三方组件是否直接放在了template下。外面套一层div即可解决。

vue控制台报错Extraneous non-props attributes (class) were passed to component but could not be automatica相关推荐

  1. [vue]Extraneous non-emits event listeners (x) were passed to component but could not be automatica

    vue报错说: [Vue warn]: Extraneous non-emits event listeners (addToCart) were passed to component but co ...

  2. vue控制台报错Duplicate keys detected: 'xxxx'. This may cause an update error.解决方案

    key值是必须唯一的,如果重复就会报错 可以把key值改为index(其实就是用索引做key值),就可以避免这个情况 添加一个索引key即可 <tr v-for="(item,inde ...

  3. vue控制台报错Duplicate keys detected:‘xxxx‘.This may canse an update error

    场景:一打开页面就报这个错误,但是丝毫不影响页面和其他功能,虽然不影响使用,但是报错还是要解决的. 原因就是:v-for循环里,key值重复了,key值必须是唯一的,如果重复就会报错,找到页面把 :k ...

  4. 控制台报错element: <Goods> - did you register the component correctly? For recursive components, make sur

    element: - did you register the component correctly? For recursive components, make sure to provide ...

  5. 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划

    导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...

  6. Vue3报错:Extraneous non-props attributes (ref_key) were passed to component but could not be automatic

    Vue3报错:Extraneous non-props attributes (ref_key) were passed to component but could not be automatic ...

  7. 【解决】控制台报错Uncaught TypeError: Object(...) is not a function at eval (vue-router.esm-bundler.js

    打开http://localhost:8080/,控制台报错 Uncaught TypeError: Object(...) is not a functionat eval (vue-router. ...

  8. Invalid component name: “Home,“. Component names should conform to valid custom element。。。控制台报错

    [Vue warn]: Invalid component name: "News,". Component names should conform to valid custo ...

  9. Chrome浏览器控制台报错NET::ERR_SSL_OBSOLETE_VERSION

    问题描述:Chrome浏览器控制台报错NET::ERR_SSL_OBSOLETE_VERSION 原因: 服务器使用了TLS1.0 或 TLS1.1 版本,没有使用 TLS1.2 解决方法: 地址栏访 ...

  10. Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The “path“ argument must be of type string

    # Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The "path" argument must be of type string 卡了半 ...

最新文章

  1. linux基础命令学习
  2. Linux学习笔记:touch新建文件、修改访问、改动时间
  3. A Way Of Leader
  4. hibernate教程--常用配置和核心API详解
  5. Exchange与ADFS单点登录 PART 5:添加ADFS信赖方信任
  6. 广西2021高考成绩位次查询,2020年广西高考一分一段表及高考位次成绩排名查询(理科+文科)...
  7. linux 下which、whereis、locate、find文件查找命令的区别[ZT]
  8. 防雷探测器在建筑物中的要求
  9. 【目标检测】 YOLO
  10. [CDOJ 5] Diligent Boys Don’t Love [动态规划]
  11. Adjustment Office
  12. ux设计_我是一名开发人员,正在过渡到UX设计帮助
  13. Excel表格数据丢失,怎样能恢复?
  14. 微信自动检测色情图片_python +itchat
  15. sdif matlab,sdif.dat是什么文件
  16. 大数据培训有前途吗,大数据工资一般多少?
  17. 杀手机器人的漫长过程继续
  18. Java算法---发工资
  19. 树莓派搭建nextcloud
  20. C#中使用OpenGL:(三)将.lib文件编译为.dll文件

热门文章

  1. MySQL基础篇——存储过程和函数中的变量
  2. PCL学习笔记一入门(更新中)
  3. 定义一个接口ITest,接口中有3个抽象方法如下。
  4. mysql查看表内容 很乱_mysql数据表字符混乱问题解决办法
  5. 外卖扫码点餐独立全开源小程序源码+VUE前端
  6. php调用会员头像,DEDECMS会员头像调用方法
  7. 使用bilibili开源的flvjs实现摄像头rtsp视频直播
  8. SpringBoot2.0启动日志中出现The APR based Apache Tomcat Native library which allows optimal performance
  9. 程序员遭遇精神内耗该如何“自救”?
  10. 凸集学习——理解凸集概念、凸包演示