r/backtickbot • u/backtickbot • Aug 26 '21
https://np.reddit.com/r/reactjs/comments/ovnu99/beginners_thread_easy_questions_august_2021/had84ai/
Having a really hard time. Nothing I do will get Typescript and React to work together in VSCode.
src/App.tsx:9:5 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
9 <div>
~~~~~I've tried:
setting VSCode's TS version
adding
"jsx": "react"to tsconfig.jsonrestarting VS Code
Reinstalling the project with
--typescriptflagReinstalling Typescript with yarn.
Typescript just refuses to work.
1
Upvotes