---
title: "Discussion on \"How to solve React 17 New JSX error in VSCode\" | Hashnode"
description: "Discussion on \"How to solve React 17 New JSX error in VSCode\". React v17 introduced the  new JSX concept.\nIf you are using Visual studio code, you may have this error:\nCannot use JSX unless the '--jsx' flag is provided.\nThe problem is VSCode is using typescript version 4.0.3 but actually react-jsx requires 4.1 o..."
url: "https://hashnode.com/posts/how-to-solve-react-17-new-jsx-error-in-vscode/5fbe480fcd6215320a629912"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to solve React 17 New JSX error in VSCode](https://danield.hashnode.dev/how-to-solve-react-17-new-jsx-error-in-vscode?utm_source=hashnode&utm_medium=feed)

React v17 introduced the new JSX concept. If you are using Visual studio code, you may have this error: Cannot use JSX unless the '--jsx' flag is provided. The problem is VSCode is using typescript version 4.0.3 but actually react-jsx requires 4.1 o...

Nov 25, 2020 · 2 min read · danield.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#vscode](https://hashnode.com/tag/vscode)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Daniel Dezfouli](https://hashnode.com/@danield)

@danield

  
[View profile](https://hashnode.com/@danield)

Full Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
