Skip to content
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

vscode: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists #1054

Closed
andresv opened this issue Mar 2, 2023 · 6 comments

Comments

@andresv
Copy link

andresv commented Mar 2, 2023

I just did a fresh vscode and deno install on a windows machine and created example project using https://fresh.deno.dev/docs/getting-started/create-a-project.

Vscode installed twind and deno plugins, but when opening routes/index.tsx it is full of such errors.

JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists

Screen Shot 2023-03-02 at 10 39 30

I tried:

  • Deno: Restart Language Server
  • Deno: Initialize workspace configuration
  • Developer Reload Window

What else must be configured to get it going in vscode?

@andresv
Copy link
Author

andresv commented Mar 2, 2023

Okay on this machine it started to work after deno task start. Have to check what i going on with the other one.

@andresv andresv closed this as completed Mar 2, 2023
@Benji377
Copy link

I'm having the exact same issue, even after deno task start, have you been able to solve this? @andresv

@marvinhagemeister
Copy link
Collaborator

marvinhagemeister commented Dec 13, 2023

@Benji377 This is a pending open issue in Deno. There is a workaround though: By running deno cache main.ts it should work.

The issue is tracked here denoland/deno#20582

@Benji377
Copy link

Thank you!

@adamzerner
Copy link
Contributor

There is a workaround though: By running deno cache main.ts it should work.

That didn't work for me in my Fresh project nor did deno task start.

@lihe6666
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants