You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As React 19 is now stable and they don't support PropTypes and defaultProps anymore, we don't want to rewrite all our code to TypeScript, a good aternative is the JSDoc, so we migrated all our PropTypes and defaultProps to JSDoc.
But it seems the autodoc of storybook 8 with storybook/react-vite doesn't support or can't read the JSDoc, most of my type description on the storybook are now marked as "unknown" and also broke all the relative input controllers.
We'd like to modernize Storybook to support JSDoc types. In the meantime the (recommended but unsatisfying) workaround is to declare ArgTypes manually in your stories.
@shilman Thank you, I also had a look for this aswell, but idk why, the argType type isnt taken into account, I still have unknown type when I force the type.
Describe the bug
As React 19 is now stable and they don't support PropTypes and defaultProps anymore, we don't want to rewrite all our code to TypeScript, a good aternative is the JSDoc, so we migrated all our PropTypes and defaultProps to JSDoc.
But it seems the autodoc of storybook 8 with storybook/react-vite doesn't support or can't read the JSDoc, most of my type description on the storybook are now marked as "unknown" and also broke all the relative input controllers.
Reproduction link
https://codesandbox.io/p/devbox/priceless-snowflake-srk6t3?file=%2Fsrc%2Fstories%2FButton.jsx
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: