-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standard HTML attributes on components are interpreted as props and return a warning-like message #710
Comments
Works fine for me in the template from <HelloWorld msg="You did it!" v-for="i in [1,2,3]" class="text-gray-500" /> Can you provide a repo with a minimal repro? Maybe this'll help, but it's shot in the dark. Throwing it in since it's related to the class/className stuff Related #552 |
@sethidden I repeated your procedure and I got this: It only returns the warning if props are defined and This isn't a big deal, but I'm not sure it's a TS 2339 error. |
@sethidden Actually I can see it when using ts as well. |
@johnsoncodehk It looks like this issue still exists in version v.0.29.6 |
@AlmarAubel this is a similar but different problem, see #592. |
I'm not sure if this is a bug, but I get a Volar message on the
class
attribute of a component whenclass
is not a defined prop.Hovering over class show the following message:
I'm not 100% sure, but I think that standard HTML attributes on components are expected to pass through to the root element of the component. So I'm not sure if a warning is necessary.
The text was updated successfully, but these errors were encountered: