question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type error for intrinsic attribute

See original GitHub issue

After upgrading from 0.35.2 to 0.36.0, Volar now incorrectly complains about the spellcheck attribute on this component:

image

(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:closed
  • Created a year ago
  • Reactions:13
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
weicheng2138commented, Jun 3, 2022

Same problem as above with svg attrs 截圖 2022-06-03 23 20 29

Type '{ strokeLinecap: string; "stroke-linecap": "round"; strokeLinejoin: string; "stroke-linejoin": "round"; d: string; }' is not assignable to type 'ElementAttrs<SVGAttributes>'.
  Property 'strokeLinecap' does not exist on type 'ElementAttrs<SVGAttributes>'. Did you mean ''stroke-linecap''?

Temperary that I switch back to 0.35.2 to solve the problem. Hopeful it can be solved soon.

0reactions
johnsoncodehkcommented, Jun 4, 2022

Duplicate of #1383

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found