Answers for "vitesse cannot use jsx unless the '--jsx' flag is provided.ts"

2

Cannot use JSX unless the '--jsx' flag is provided

// Inside of tsconfig, include was set only to /src, Change to:

  "include": [
    "./src/**/*.ts"
  ]
Posted by: Guest on October-18-2021
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