From d62cfffe36eab740750ed0f79072591a24d5941e Mon Sep 17 00:00:00 2001 From: Evgeny Talagaev Date: Mon, 16 Oct 2023 18:21:40 +0300 Subject: [PATCH] Fix express error --- server.ts | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server.ts b/server.ts index ddb79ddda..baa304deb 100644 --- a/server.ts +++ b/server.ts @@ -14,6 +14,7 @@ app.use(cors()); app.use(express.static('build')); app.get('*', (req, res) => { + console.log(req); res.sendFile(path.join(__dirname, 'build/index.html')) }) diff --git a/tsconfig.json b/tsconfig.json index c98056eed..1b94f9f57 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "esModuleInterop": true, "noEmit": true, "noUnusedLocals": true, - "noUnusedParameters": false, + "noUnusedParameters": true, "noImplicitAny": true, "noImplicitReturns": true, "skipLibCheck": true,