From 7b24beb74477d93dba05a1588573e3de9da86e35 Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti Date: Mon, 4 May 2026 14:19:44 +0200 Subject: [PATCH] fix: vercel deploy failing due to ts moduleResolution error --- .github/workflows/ci.yml | 3 +++ package.json | 1 - tsconfig.json | 20 ++++++++++++++------ yarn.lock | 5 ----- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23bd65a..2b5968e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: - name: Setup dependencies uses: ./.github/actions/ci-setup + - name: Run next build + run: yarn next build + - name: Run test run: yarn test diff --git a/package.json b/package.json index 39c67e0..894ce0c 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "typescript": "^6.0.2" }, "devDependencies": { - "@tsconfig/next": "^2.0.6", "knip": "^6.11.0", "msw": "^2.12.14", "oxfmt": "^0.42.0", diff --git a/tsconfig.json b/tsconfig.json index a984b42..98b8920 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,20 @@ { - "extends": "@tsconfig/next/tsconfig.json", "compilerOptions": { - "allowJs": false, - "tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo", - "forceConsistentCasingInFileNames": true, + "target": "esnext", + "module": "commonjs", + "noEmit": true, "strict": true, - "moduleResolution": "bundler" + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": false, + "incremental": false, + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "ignoreDeprecations": "6.0" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] } diff --git a/yarn.lock b/yarn.lock index 8b224aa..d768563 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1149,11 +1149,6 @@ dependencies: defer-to-connect "^1.0.1" -"@tsconfig/next@^2.0.6": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@tsconfig/next/-/next-2.0.6.tgz#e0ba358eed17da684c6e013a14e1c53fc6cd4822" - integrity sha512-C6eZoNyAMKv2UvzDZqcp8zXPviu6W4Ev1KUbqfmaMSZuq+tmbtTWaqxTif/yaui8WCEcRlQrHC8q9tNzBclHOw== - "@tybys/wasm-util@^0.10.1": version "0.10.1" resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414"