Type error for intrinsic attribute
See original GitHub issueAfter upgrading from 0.35.2
to 0.36.0
, Volar now incorrectly complains about the spellcheck attribute on this component:
(from https://headlessui.dev/vue/combobox)
Reverting to previous extension version resolves the error. Message:
Type '{ ref: string; class: string; spellcheck: string; placeholder: string; displayValue: (option?: unknown) => string; "display-value": (option?: unknown) => string; }' is not assignable to type 'IntrinsicAttributes & Partial<{ as: string | Record<string, any>; unmount: boolean; static: boolean; }> & Omit<Readonly<ExtractPropTypes<{ as: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; static: { ...; }; unmount: { ...; }; displayValue: { ...; }; }>> & { ...; } & VNodeProps & AllowedCompo...'.
Property 'spellcheck' does not exist on type 'IntrinsicAttributes & Partial<{ as: string | Record<string, any>; unmount: boolean; static: boolean; }> & Omit<Readonly<ExtractPropTypes<{ as: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; static: { ...; }; unmount: { ...; }; displayValue: { ...; }; }>> & { ...; } & VNodeProps & AllowedCompo...'.
Issue Analytics
- State:
- Created a year ago
- Reactions:13
- Comments:8 (2 by maintainers)
Top Results From Across the Web
json - Type '{}' is not assignable to type 'IntrinsicAttributes ...
I solved a lot of "not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes" type of errors (Microsoft closed issue) just by ...
Read more >Deciphering TypeScript's React errors | by Fiona Hopkins |
Property 'nmae' — The “properties” are the attributes on the <input> tag. So this error is about “ nmae=”…" ”. does not exist...
Read more >does not exist on type 'intrinsicattributes - You.com | The AI ...
Property 'sx' does not exist on type 'IntrinsicAttributes & CardProps'. It underlines 'sx' in red and gives the error. Here is my code....
Read more >Useful Patterns by Use Case - React TypeScript Cheatsheets
A very common use case for this is to render something as either a button or an anchor, based on if it receives...
Read more >Typescript Property XXX does not exist on type ... - Edureka
The exact error that I'm getting: TS2339: Property 'propToPass' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem as above with svg attrs
Temperary that I switch back to 0.35.2 to solve the problem. Hopeful it can be solved soon.
Duplicate of #1383