Closed adoreparler closed 9 months ago
Also want to note that its able to detect all typescript and react elements just fine. Its only complaining about the regular HTML tags like div, li, ul, ect...
I think this is something to do with my tsconfig or node modules installed, because its not happening in another project that has tsx files in it
I was having this same problem (along with some others) and realized that coc-tsserver
is using typescript 4.9.3, see:
https://github.com/neoclide/coc-tsserver/blob/d8a2f44d64fcefaf6a2087cd5d0b7783393b73d7/package.json#L1180 and https://github.com/neoclide/coc-tsserver/blob/d8a2f44d64fcefaf6a2087cd5d0b7783393b73d7/yarn.lock#L184
and the project I was starting up was using typescript 5.0.2 and there were some incompatibilities.
I solved this by setting "tsserver.useLocalTsdk": true
on the coc-settings.json
. All the errors I was seeing went away.
I got the solution from https://github.com/neoclide/coc-tsserver/issues/434#issuecomment-1588758486, thanks @yaegassy for the explanation.
Fixed on coc-tsserver@2.1.4
I am new to react and every time I open or write regular html tags I get errors about them using coc-tsserver
Plugs: