Skip to content

fix(storybook): drop downlevelIteration removed in TypeScript 7 - #790

Merged
thebuilder merged 1 commit into
mainfrom
feat/eager-engelbart-4b5a02
Oct 16, 2026
Merged

thebuilder merged 1 commit into
mainfrom
feat/eager-engelbart-4b5a02

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

storybook#typecheck has been failing, which also fails pnpm turbo:check and CI:

apps/storybook/tsconfig.json(15,5): error TS5102: Option 'downlevelIteration' has been removed. Please remove it from your configuration.

apps/storybook resolves typescript@7.0.2, which removed the option. tsc treats it as a config error and aborts before checking anything, so the whole task fails on one dead setting.

The change

One line removed from apps/storybook/tsconfig.json. The option was already doing nothing here: downlevelIteration only ever affected emit for targets below ES2015, and this config sets "target": "ESNext" with "noEmit": true.

No source files needed changes, and pnpm-lock.yaml is untouched.

Verification

  • pnpm --filter storybook typecheck exits clean. Because the config error previously aborted the run, this is the first time storybook source is actually checked under TS 7, and no masked type errors surfaced.
  • pnpm turbo:check from the repo root: 8 successful, 8 total.
  • tsc now reports no diagnostics at all, so nothing else in that tsconfig is removed or deprecated under TS 7. listEmittedFiles and strictFunctionTypes are left alone to keep this minimal.

TypeScript 7.0.2 removed the option, so tsc aborted with TS5102 before
it checked anything, failing storybook#typecheck. The option was already
dead weight here: it only ever affected emit for targets below ES2015,
and this config sets target ESNext with noEmit.
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-intersection-observer Ready Ready Preview Oct 16, 2026 1:56pm UTC
react-intersection-observer-storybook Ready Ready Preview Oct 16, 2026 1:56pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/react-intersection-observer@790

commit: 1194fd4

@thebuilder
thebuilder merged commit a8e77fb into main Oct 16, 2026
10 checks passed
@thebuilder
thebuilder deleted the feat/eager-engelbart-4b5a02 branch October 16, 2026 13:59

This branch was successfully deployed

2 active deployments
Preview – react-intersection-observer — 1194fd4d Deployed Oct 16, 2026 by vercel[bot]
Preview – react-intersection-observer-storybook — 1194fd4d Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant