BuilderIO / BuilderIO/builder

Vue 3 [Vue warn]: Extraneous non-props attributes

Open
#4,219 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.8k
Forks
1.2k
Avg merge
1d 6h
Merged PRs (30d)
17

Description

```
WARN [Vue warn]: Extraneous non-props attributes (attributes, lockAspectRatio, height, width) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes. at
```

Looks like for Image and other components the generated Vue components have `` tag that does not contain single root element. and the $attrs are not handled correctly in that case.

Vue can pass through the $attr when the component has a single root element, but when there are more than on elements in the root the pass through of props does not happen and Vue warns about it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.