[vue3.x]实战问题--Extraneous non-props attributes

阅读 147

2022-03-11

Vue3.x 开发问题

开发环境

	"vue-i18n": "^9.1.6",
    "vue-router": "^4.0.0-0",
    "vuex": "^4.0.0-0"

问题描述

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

问题解析

导致该问题的主要原因是传递了没有解析的属性,可以检查一下你用的第三方的组件,或者自己编写的组件,是否 存在没有解析的属性,例如:class等属性

精彩评论(0)

0 0 举报