Repository navigation
Closed
Labels
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingArea: Playgroundapps/playground (in-browser instrument editor)ChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: LowIsolated change, about 2 hours or lessPriority: LowNice to have, cosmetic or speculativeUpstreamThe fix belongs in a @douglasneuroinformatics/* package or a third-party dependency
Description
storybook, @storybook/addon-docs, @storybook/addon-themes and @storybook/react-vite are pinned to exactly 10.5.6 in the catalog by the dependency update on the deps branch. The newest release eligible under the repo's 7-day minimumReleaseAge on 2026-10-04 was 10.6.0.
Why it was not upgraded
From 10.5.7 on, tsc fails in apps/playground:
src/components/FileUploadDialog/FileUploadDialog.stories.tsx(29,24): error TS7006: Parameter 'files' implicitly has an 'any' type.
src/components/FileUploadDialog/FileUploadDialog.stories.tsx(61,26): error TS7006: Parameter 'files' implicitly has an 'any' type.
Both failures are callbacks, onSubmit(files) and onValidate(files), in the args passed to <Story args={…} /> inside a decorator.
- Up to 10.5.6, those args get their types from
FileUploadDialogProps. From 10.5.7 they do not. - The bisect ran on a fresh lockfile at each step, with the addons and the core on the same version:
- pass: 10.4.2, 10.4.6, 10.5.0, 10.5.5, 10.5.6
- fail: 10.5.7, 10.5.8, 10.5.10, 10.6.0
- The 10.5.7 release notes mention nothing typing-related, so the cause is not identified.
- No matching upstream issue was found.
When the addons and the storybook core peer resolve to different versions, the error disappears. Any bisect has to keep them aligned.
What is required
Either:
- find what changed in 10.5.7's published types (
@storybook/reactorstorybook/internal/types) and report it upstream if it is a regression, or - annotate the two callbacks (
onSubmit(files: File[]),onValidate(files: File[])) and accept the looser typing of decorator args.
Then move the four catalog entries back to a caret range and run pnpm lint, which type-checks every story.
Metadata
Metadata
Assignees
Labels
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingArea: Playgroundapps/playground (in-browser instrument editor)ChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: LowIsolated change, about 2 hours or lessPriority: LowNice to have, cosmetic or speculativeUpstreamThe fix belongs in a @douglasneuroinformatics/* package or a third-party dependency
Activity
joshunrau commentedon Oct 26, 2026
Fixed by f98c865 in #1660, which is still open (
CONFLICTING, last updated 2026-10-07).main(d86740e) still pins all four packages to10.5.6(pnpm-workspace.yaml:49-52).Cause
Storybook's declaration build changed in 10.5.7. The
storybook10.5.6 tarball has nodist/chunk-*.d.ts. 10.5.7 has 18, and its declarations contain 166import("@storybook/react").Args/.Parametersreferences.storybooklists@storybook/reactin neitherdependenciesnorpeerDependencies. 10.6.3, the currentlatest, still has 165.Upstream tracks it as storybookjs/storybook#36630, opened 2026-10-06. The fix PR, storybookjs/storybook#36639, adds
**/__for-testing__/**to the core declaration excludes. It is open, has no review, and was labelled Stale on 2026-10-20.Here, the hoisted
node_modules/.pnpm/node_modules/@storybook/reactis the variant paired with thestorybookworkspace's ownreact@19.1.0(catalog:react19). Thatreactships no types, and rootpackage.jsondeletes@types/react(L70). TypeScript then checks the stories against that copy instead of the one paired withvendor/react@19.x. f98c865's message has the full chain.Corrections
argslose their types.tsconly reports it where a callback inargshas an unannotated parameter.mainhas seven of these, and five are in top-levelargsoutside the playground:DemoBanner.stories.tsx:11,IdentificationForm.stories.tsx:11,StartSessionForm.stories.tsx:12,InteractiveContent.stories.tsx:24andInstrumentRenderer.stories.tsx:71.argslose their types, so keep them unannotated. f98c865 changes no story.Notes for landing
hoistPatternexclusion leaves the@storybook/reactimport instorybook's declarations unresolved. That is silent only because the base tsconfig setsskipLibCheck: true(@douglasneuroinformatics/tsconfig/tsconfig.json:16, extended by the roottsconfig.json). WithskipLibCheck: false, upstream's repro gets 163 TS2307 errors on 10.6.1.storybook/AGENTS.mdsection. The exclusion can go oncestorybook'sdist/**/*.d.tsno longer imports@storybook/react.testing/. Storybook has no spec intesting/src/specs/, and no workflow builds it. build: upgrade dependencies held back by breaking changes #1660 already lists Storybook as an agreed exception (lint, the Storybook build and a browser check). The seven callbacks makepnpm lint, which CI runs, the regression check.mainhas not touchedpnpm-workspace.yaml,pnpm-lock.yamlorstorybook/since build: upgrade dependencies held back by breaking changes #1660's merge base (c7a6364).storybook/AGENTS.mdapplies cleanly. Thepnpm-workspace.yamlhunk fails only on thereact-is: 19.1.0context line that 1062557 (recharts 3) adds. The lockfile hunks do not apply, so regenerate the lockfile. Keep the step from build: upgrade dependencies held back by breaking changes #1660's body that deletes the rootnode_modules, because a plainpnpm installkeeps the stale hoisted link.Closes #1624, #1626, …, #1619, …on one line. GitHub links only Upgrade the API to NestJS 12 (blocked on libnest) #1624, so merging it leaves this issue open. Repeat the keyword before each number.Triage note written with Claude Code. Code references point at
main@d86740e.build: upgrade storybook to 10.6