Skip to content

Storybook regressions after TypeScript 5.1 update #53502

@mirka

Description

@mirka

The recent update to TypeScript 5.1 (#52621, #53445) has caused some breakage in our Storybook:

  • The components props tables do not show information sourced from TypeScript data anymore. We are missing a huge chunk of props documentation and controls.
  • Event handlers such as onChange are not showing up as expected in the Actions panel. It seems like everything with configured with actions: { argTypesRegex: '^on.*' } is broken. In some cases, when the handlers are called in component story code without an optional (onChange() vs. onChange?.()), the story will crash on the first change event.

How to address

We'll first try to update Storybook to v7 to see if these issues might be resolved naturally. This upgrade was planned from before and we are now unblocked due to the Node upgrade in #53426.

Metadata

Metadata

Assignees

Labels

StorybookStorybook and its stories for components[Type] BugAn existing feature does not function as intended[Type] Developer DocumentationDocumentation for developers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions