From a5c7b98415d0bd9d0ad438ba0bcc5b0a9016605c Mon Sep 17 00:00:00 2001 From: Willian Oliveira Date: Wed, 25 Nov 2020 18:55:49 -0300 Subject: [PATCH] fix: error using jsx Message Error: Cannot use JSX unless '--jsx' flag is provided Issue: https://github.com/facebook/create-react-app/issues/9868 --- package.json | 4 ++-- tsconfig.json | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4ff7f8f..2470a8b 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "@types/react-dom": "^16.9.8", "react": "^17.0.1", "react-dom": "^17.0.1", - "react-scripts": "4.0.1", - "typescript": "^4.0.3", + "react-scripts": "4.0.0-next.98", + "typescript": "^4.1.0", "web-vitals": "^0.2.4" }, "scripts": { diff --git a/tsconfig.json b/tsconfig.json index a273b0c..d256828 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,15 +12,14 @@ "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react" }, "include": [ "src" ] -} +} \ No newline at end of file