I am new to react and every time I open or write regular html tags I get errors about them using coc-tsserver ## versions vim version: VIM - Vi IMproved 9.0 9001424 node version: v20.3.1 coc.nvim v...
I am not sure why my tsserver lsp is complaining about regular tags in my react code. Anyone have any ideas.
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.
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.