From 4e08ade4e9024873ca2830fbb68bc0457c8c482c Mon Sep 17 00:00:00 2001 From: schettn Date: Tue, 10 Nov 2020 22:59:15 +0100 Subject: [PATCH] Update to react-scripts@4.0.0 React-scripts has been upgraded. The tsconfig had to be edited in order to bypass an error. Ref: https://github.com/facebook/create-react-app/issues/9429#issuecomment-674994709 --- package.json | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 474eeb8..f654afe 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "react": "^16.13.1", "react-dom": "^16.13.1", "react-router-dom": "^5.2.0", - "react-scripts": "3.4.3" + "react-scripts": "^4.0.0" }, "scripts": { "start": "react-scripts start", diff --git a/tsconfig.json b/tsconfig.json index f2850b7..fbce9be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react" + "jsx": "react", + "noFallthroughCasesInSwitch": true }, "include": [ "src"