Answers for "[ts] cannot use jsx unless the '--jsx' flag is provided. [17004]"

3

Cannot use JSX unless the '--jsx' flag is provided.ts(17004)

// if "jsx": "react" is being overwritten, do this if on VSCode editor:
// 1. Go to the command palette CTRL+Shift+P.
// 2. Choose "TypeScript: Select a TypeScript Version...".
// 3. Choose "Use workspace Version".

//Should be sorted, The problem is VSCode using an older version of typescript, while the typescript version shipped with the project is a later version.
Posted by: Guest on April-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language