diff --git a/client/tsconfig.json b/client/tsconfig.json index 9799e07..e769f43 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "target": "ESNext", "lib": [ "dom", "dom.iterable", @@ -16,10 +15,12 @@ "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, - "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", + "module": "ESNext", + "target": "ESNext", "resolveJsonModule": true, "isolatedModules": true, + "allowImportingTsExtensions": true, "noEmit": true, "jsx": "react-jsx" } diff --git a/server/src/websocket.ts b/server/src/websocket.ts index a98e22d..c4bf99e 100644 --- a/server/src/websocket.ts +++ b/server/src/websocket.ts @@ -1,5 +1,4 @@ -import { Server } from "socket.io"; -import { DefaultEventsMap } from "socket.io/dist/typed-events"; +import { DefaultEventsMap, Server } from "socket.io"; let io: Server; diff --git a/server/tsconfig.json b/server/tsconfig.json index bbbae21..49e80bb 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -4,10 +4,11 @@ "../types/**/*" ], "compilerOptions": { - "target": "ES2016", - "module": "CommonJS", - "jsx": "react", + "target": "ES2022", + "module": "Node16", + "moduleResolution": "node16", "esModuleInterop": true, + "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "outDir": "./dist", "rootDir": "../",