Skip to content

React types are not working #1

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

Open
mohankoppuravuri opened this issue Nov 30, 2024 · 5 comments
Open

React types are not working #1

mohankoppuravuri opened this issue Nov 30, 2024 · 5 comments

Comments

@mohankoppuravuri
Copy link

mohankoppuravuri commented Nov 30, 2024

use state types are not working

@krutoo
Copy link

krutoo commented Dec 8, 2024

Same issue, deno dont sees react types:

изображение

@krutoo
Copy link

krutoo commented Dec 8, 2024

@thisisjofrank Can you help or fix example?

@MrGVSV
Copy link

MrGVSV commented Dec 16, 2024

Also experiencing this (in both WebStorm and Cursor). I found that deleting the node_modules automatically generated by some of the tasks helps a little bit.

It still doesn't fix everything, but it at least helps get autocomplete working—despite still displaying the types as any.

@oguzhanogreden
Copy link

Importing react from esm.sh helps:

// ...
  "imports": {
    // ...
    "react": "https://esm.sh/[email protected]",
    // ...
  },
  "compilerOptions": {
    // ...
    "jsxImportSource": "https://esm.sh/[email protected]"
    // ...
  }
// ...

New to Deno—unsure why this works. Any thumbs up or warnings? 😊

@Khufu-I
Copy link

Khufu-I commented Feb 28, 2025

This should be fixed with deno 2.2.2 denoland/deno#28185

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