Storybook regressions after TypeScript 5.1 update #53502
Labels
Storybook
Storybook and its stories for components
[Type] Bug
An existing feature does not function as intended
[Type] Developer Documentation
Documentation for developers
The recent update to TypeScript 5.1 (#52621, #53445) has caused some breakage in our Storybook:
onChange
are not showing up as expected in the Actions panel. It seems like everything with configured withactions: { 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.
The text was updated successfully, but these errors were encountered: