From 4f5fb78f7e7914d163e490cf2af47e2b794d2508 Mon Sep 17 00:00:00 2001 From: Jordi Kloosterboer Date: Tue, 24 Mar 2026 14:41:15 -0600 Subject: [PATCH] [react-scripts: start] Default TSC_COMPILE_ON_ERROR to true for local dev Prevents TypeScript type errors from blocking the dev server during local development, while still allowing CI/build environments to override the behavior by setting TSC_COMPILE_ON_ERROR explicitly. --- CHANGELOG-FRONTIER.md | 4 ++++ packages/react-scripts/package.json | 2 +- packages/react-scripts/scripts/start.js | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-FRONTIER.md b/CHANGELOG-FRONTIER.md index 8ece112c0cf..93089391f25 100644 --- a/CHANGELOG-FRONTIER.md +++ b/CHANGELOG-FRONTIER.md @@ -1,3 +1,7 @@ +## 8.15.8 + +- Default TSC_COMPILE_ON_ERROR to true in the dev server so TypeScript errors are non-blocking during local development + ## 8.15.7 - Fix coalesceLocales not traversing from `.js` files into `.tsx` files, causing translations from packages only reachable through `.tsx` imports to be silently missing from the coalesced output diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 596c67137f4..0d2850eab92 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@fs/react-scripts", - "version": "8.15.7", + "version": "8.15.8", "upstreamVersion": "5.0.1", "description": "Configuration and scripts for Create React App.", "repository": { diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index befdae6ed54..9acc20e458d 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -11,6 +11,8 @@ // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'development'; process.env.NODE_ENV = 'development'; +// Default to treating TypeScript errors as warnings (non-blocking) during local development +process.env.TSC_COMPILE_ON_ERROR = process.env.TSC_COMPILE_ON_ERROR ?? 'true'; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will