vite-plugin-vue-devtools icon indicating copy to clipboard operation
vite-plugin-vue-devtools copied to clipboard

The plugin encountered a warning during execution

Open Songhaohan520 opened this issue 2 years ago • 4 comments

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

Songhaohan520 avatar Jul 03 '23 10:07 Songhaohan520

"vite": "^4.3.9", "vue": "3.3.4"

Songhaohan520 avatar Jul 03 '23 10:07 Songhaohan520

Can you provide a mini repo? Thanks 🙏.

webfansplz avatar Jul 03 '23 10:07 webfansplz

Can you provide a mini repo? Thanks pray.

This is my company's code repository, which is not yet online. The first time entering the page, there will be an initialization error related to the 'data-v-inspector' tag. <section data-v-7fc34792="" class="oyd-layout oyd-layout__classic w-[100%] h-[100%] relative" data-v-inspector="src/layout/layout/Layout.vue:41:6"

Songhaohan520 avatar Jul 03 '23 10:07 Songhaohan520

Looks like it is a bug from vue. Need a reproduction to figure out why.

Temporal workaround: set inheritAttrs: false to this component.

alexzhang1030 avatar Jul 04 '23 01:07 alexzhang1030