From 0bc3e854fb24a2d97b998b4dee53e92ae77dce51 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 22 Jul 2025 10:32:15 -0500 Subject: [PATCH] Fix build compatibility issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 Build Fixes: - Downgrade TypeScript from ^5.7.3 to ^4.9.5 for react-scripts compatibility - Add .npmrc with legacy-peer-deps=true to handle dependency conflicts - Ensure compatibility with react-scripts@5.0.1 requirements This resolves the ERESOLVE error: ❌ react-scripts@5.0.1 expects typescript ^3.2.1 || ^4 ✅ Now using typescript ^4.9.5 (compatible) Build should now succeed on Vercel. --- .npmrc | 2 ++ package-lock.json | 12 ++++++------ package.json | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..bf46746 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +legacy-peer-deps=true +fund=false \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e006c35..9f930e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,13 +35,13 @@ "react-dom": "^18.3.1", "react-router-dom": "^6.28.0", "react-scripts": "5.0.1", - "typescript": "^5.7.3", "web-vitals": "^2.1.4" }, "devDependencies": { "autoprefixer": "^10.4.21", "postcss": "^8.5.6", - "tailwindcss": "^3.4.17" + "tailwindcss": "^3.4.17", + "typescript": "^4.9.5" }, "engines": { "node": "22.x" @@ -20697,16 +20697,16 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=14.17" + "node": ">=4.2.0" } }, "node_modules/unbox-primitive": { diff --git a/package.json b/package.json index f6e6843..2991981 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "react-dom": "^18.3.1", "react-router-dom": "^6.28.0", "react-scripts": "5.0.1", - "typescript": "^5.7.3", "web-vitals": "^2.1.4" }, "scripts": { @@ -63,6 +62,7 @@ "devDependencies": { "autoprefixer": "^10.4.21", "postcss": "^8.5.6", - "tailwindcss": "^3.4.17" + "tailwindcss": "^3.4.17", + "typescript": "^4.9.5" } }