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
Visual Studio Code: There is no interface "JSX.IntrinsicElements" (nano-jsx@0.0.21) #52
Comments
Can you please try to add the following types? declare namespace JSX {
interface IntrinsicElements {
[elemName: string]: any
}
interface ElementClass {
render: any
}
interface ElementChildrenAttribute {
children: any
}
} |
Ok, I don't get it. If I install 0.0.21 and check
I also tried adding it to Somehow the My VSCode settings.json:
|
Please try v22 and this example |
The example is running fine. Thank you very much! I also upgraded my current dist to 0.0.22. Did you make any changes to the image module?
But the files exists. Also I'm getting warning when using:
When I change string to any, the error is fixed. Also getting the error:
|
Everything seems to work again in v23. |
Thanks I will test later today and report. |
Thanks! It is working. I'll close the issue. |
Describe the bug
This is maybe not related to Nano JSX at all, but when I
npm i nano-jsx@0.0.21
I get the following message in VSCode, when creating HTML-Elements like<div>
in.tsx
files.The JSX element implicitly contains the type "any" because there is no interface "JSX.IntrinsicElements".
Have a question?
I was searching on Google how to fix the Issue in VSCode, but I havn't found any working solution. ATM I downgraded to 0.0.20, since the Issue is resolved with it.
The text was updated successfully, but these errors were encountered: