-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
select elements receive React typings #111
Comments
It seem your project included react types, please disable declare let select: JSX.IntrinsicElements['select']; // should be ElementAttrs<SelectHTMLAttributes>
declare let input: JSX.IntrinsicElements['input']; // should be ElementAttrs<InputHTMLAttributes> |
Yeah it's very strange, we don't use React at all, nor are React types installed. Searching for "react" in the package lock file only turns up a bunch of babel plugins. I'm not sure what dependency leans on that, because I don't use babel myself. |
Our project does use Storybook and their stuff is all React of course. I wonder if that's interfering (though I wouldn't know how). |
Try use include / exclude options in You could click |
Should I explicitly exclude the react types path? Shouldn't that already be done by ignoring |
Sorry i'm not really familiar to Let me know if you find out the correct setup. And you should test it on |
Oh man, I think I've found the issue! If I set it to nothing to do with Volar, sorry for the distraction! |
We're running into a very strange issue where the use of a
select
element will, for some reason, try to infer types from React:I haven;'t been able to reproduce this elsewhere. Only seems to occur when using
select
The text was updated successfully, but these errors were encountered: