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
The type column of my PropTypes table (for a React component) is displaying all types as [Object object]. Perhaps something has changed or is not set up correctly, because
To fix this, I had to hack the propsFromDocgen function as follows:
propType: propType.name || propType,
Doing a bit of digging, I found that in my particular case, propTypes is ending up with an object rather than a plain string.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
@tuchk4 is there any chance you could add the above from @fauxparse as a fix for this? It seems proptypes are now always returned as objects from babel-plugin-react-docgen in the most recent versions
The
type
column of my PropTypes table (for a React component) is displaying all types as[Object object]
. Perhaps something has changed or is not set up correctly, becauseTo fix this, I had to hack the
propsFromDocgen
function as follows:Doing a bit of digging, I found that in my particular case,
propTypes
is ending up with an object rather than a plain string.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: