neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

Cannot use JSX unless the '--jsx' flag is provided when using "jsx" field as "react-jsx" in tsconfig.json #303

Closed trinhngocdieu closed 3 years ago

trinhngocdieu commented 3 years ago

Argument for '--jsx' option must be: 'preserve', 'react-native', 'react' But the newest tsconfig.json from create-react-app is 'react-jsx' and coc-tsserver alerts the error:

Cannot use JSX unless the '--jsx' flag

It seems the TS version coc-tsserver is out of date. Hope it could be fixed soon!

chemzqm commented 3 years ago

Seems problem with schema of coc-json

EdmundsEcho commented 2 years ago

Apologies for not tracking here; I'm getting the same error. If it's a problem with schema of coc-json, what am I supposed to do to change that?