this post was submitted on 29 Jun 2023
4 points (100.0% liked)

React

907 readers
1 users here now

A community for discussing anything related to the React UI framework and it's ecosystem.

https://react.dev/

Wormhole

[email protected]

Icon base by Skoll under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

I am not sure why my tsserver lsp is complaining about regular tags in my react code. Anyone have any ideas.

you are viewing a single comment's thread
view the rest of the comments
[–] Tuna_no_crust 1 points 1 year ago

I'd start with the dumbest things I'd overlook. That's my go-to debugging strategy. Have you installed the react typings? npm i @types/react

That error says it can't find the corresponding mappings of JSX elements to their HTML elements. So I'd start with checking my types to see if I didn't install them or have conflicting typings.