2

I'm struggling with following error in React app with typescript:

Cannot use JSX unless the '--jsx' flag is provided
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
  • See here: https://stackoverflow.com/questions/50432556/cannot-use-jsx-unless-the-jsx-flag-is-provided – Ali Esmailpor Jan 23 '21 at 08:34
  • Does this answer your question? [Cannot use JSX unless the '--jsx' flag is provided](https://stackoverflow.com/questions/50432556/cannot-use-jsx-unless-the-jsx-flag-is-provided) – buzatto Jan 24 '21 at 21:54

1 Answers1

2

Update your tsconfig.json file:

"compilerOptions": {
    ...
    "jsx": "react"
 },
Fatema Tuz Zuhora
  • 3,088
  • 1
  • 21
  • 33