enable jsx flag

vscode Cannot use JSX unless the '--jsx' flag is provided Ошибка

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

Помогает следующее решение:
Идем в tsconfig.json и меняем

    "jsx": "react-jsx"

на

    "jsx": "react"

Источник: https://stackoverflow.com/a/64946881

Subscribe to RSS - enable jsx flag