Issue with regular HTML tags in React

https://github.com/neoclide/coc-tsserver/issues/436

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

4 points · 1 comments · view on lemmy.world

1 Comments

Tuna_no_crust@lemmy.world · 1 pts · 3y

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.