Repository navigation
fix: resolve type-check failures breaking every production build - #6958
Conversation
Netlify's production build has failed on every commit to main since 2026-09-09 (`Build script returned non-zero exit code: 2`, tracked in kubestellar#6828/kubestellar#6905/kubestellar#6957) - the generic message never surfaced the real cause because the maintainer-facing reporter only relays Netlify's summary line, not the underlying build log. Reproduced the exact failure locally (Node 20.11.1 on Linux, matching netlify.toml's pinned NODE_VERSION and this repo's committed package-lock.json - a Windows repro hit an unrelated, Windows-only ESM path error and was not representative). `next build`'s "Running TypeScript" step fails with: vitest.config.ts(3,37): error TS2307: Cannot find module 'rollup' scripts/update-version.test.ts(253,90): error TS1501: This regular expression flag is only available when targeting 'es2018' or later. scripts/update-version.test.ts(284,93): error TS1501: (same) Root causes: - vitest.config.ts imported `SourceMapInput` from `rollup` directly. vite@8 replaced rollup with rolldown as its bundler (introduced in kubestellar#6834, which is the exact commit and date kubestellar#6828 was first filed against), so `rollup` is no longer part of the dependency tree at all - not even transitively. vite re-exports the same rolldown-backed types under its own stable `Rollup` compat namespace specifically for this kind of consumer code, so that's what this now imports instead of reaching into whichever bundler vite happens to use internally. - tsconfig.json's `target` was still "ES2017", predating the `/s` (dotAll) regex flags added in kubestellar#6898 on 2026-09-12, which require ES2018+. Bumped to the minimum needed ("ES2018") rather than further, to keep this fix's blast radius as small as possible. `noEmit: true` means this only affects tsc's own syntax acceptance during type checking, not Turbopack's actual output. Verified end-to-end: `next build` (the literal command netlify.toml runs) now completes with exit 0 on Linux/Node 20.11.1, past type check, static generation (232/232 pages), and page optimization - a full reproduction of the previously-broken production build. Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Bryan Saravia <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellar-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @Bryandero98. Thanks for your PR. I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
fc4d00d
into
kubestellar:main
Regenerar contributions.json capturó el merge de kubestellar/docs#6958 que ocurrió justo después del commit anterior. Se quita de "en curso ahora" y se actualiza el texto estático de 58 a 59. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…nguage breakdown Five improvements identified from a competitive portfolio review: - Reframe hero tagline and profile copy around automation as the explicit specialization (CLIs, MCP servers, CI fixes), tying together packetforge/cliguard/captionforge/contrib-radar instead of leaving that thread implicit. - Add contrib-radar's before/after impact line (~1hr manual verification across 5 orgs -> a single MCP call). - Replace the static 7-card contributions grid with a sortable, searchable table driven entirely by data/contributions.json. This also fixes a real bug: nodered, drawora, kestra, f3nation and kubestellar (10 PRs) were fetched by loadContributionsData() but silently dropped because no matching HTML card existed for them. - Add a real language breakdown (JavaScript 86.4%, TypeScript 11.9%, Java 1.7%), computed server-side in update-contributions.mjs from each contribution group's representative repo, weighted by merged PR count, and rendered as bars from the JSON - not hardcoded. - Add a curated "CI and automation fixes" highlight list separating build/pipeline fixes (kubestellar/docs#6958, #6956, kubestellar/homebrew-tap#448) from general bug fixes. Verified: table/sort/filter logic and language percentages checked against live contributions.json (12/12 groups render, counts sum to total, ES/EN i18n key parity holds). Co-Authored-By: Claude Sonnet 5 <[email protected]>
Summary
Netlify's production build has failed on every commit to
mainsince 2026-09-09 (Build script returned non-zero exit code: 2), tracked across #6828, #6905, and #6957. The generic auto-filed message never surfaced the real cause since the reporter only relays Netlify's summary line, not the underlying build log - so I reproduced the actual build locally to find it.Reproduction note: a Windows-side repro hit an unrelated, Windows-only ESM path error (
ERR_UNSUPPORTED_ESM_URL_SCHEMEinscripts/generate-shared-config.ts's dynamicimport()), which is a red herring - that same script runs fine on Linux. The real failure only shows up when reproducing with Node 20.11.1 on Linux, matchingnetlify.toml's pinnedNODE_VERSIONand this repo's committedpackage-lock.json.next build's "Running TypeScript" step fails with:Root causes
vitest.config.tsimportedSourceMapInputdirectly fromrollup.vite@8replaced rollup withrolldownas its bundler (introduced in 🐛 Add missing vite dev dependency so the test suite can start #6834 - the exact commit and date [netlify-deploy-failure] Netlify production deploy failing #6828 was first filed against), sorollupisn't part of the dependency tree at all anymore, not even transitively.vitere-exports the same rolldown-backed types under its own stableRollupcompat namespace precisely for this situation, so this now imports from there (import type { Rollup } from 'vite') instead of reaching into whichever bundler vite happens to use internally - the same class of break shouldn't recur next time vite swaps bundlers again.tsconfig.json'stargetwas still"ES2017", predating the/s(dotAll) regex flags added in [quality] scripts: subprocess tests for update-version.js release automation #6898 on 2026-09-12, which require ES2018+. Bumped to the minimum needed ("ES2018") rather than further, to keep this fix's blast radius small.noEmit: truemeans this only affectstsc's own syntax acceptance during type-checking - not Turbopack's actual build output.Test plan
npm cifrom the committed lockfile,NEXT_PUBLIC_BRANCH=main npm run build- confirmed the 3 type errors above, matching the production failure signature.tsc --noEmitdirectly - 0 errors.next buildend-to-end with both fixes applied - exits 0, completing type check, static generation (232/232 pages), and page optimization. This is a full local reproduction of the previously-broken production build now succeeding.Closes #6828, closes #6905, closes #6957
🤖 Generated with Claude Code