New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Docgen Typescript errors when using certain Material-ui components #12297
Comments
Me too.I hope someone to resolve it. |
@mlenser is this an issue you can file a repro for on the |
I was able to get the docgen to work for the following example import * as React from 'react';
import Card, { CardProps } from '@material-ui/core/Card';
/**
* MaterialUICard description
*/
export class MaterialUICard extends React.PureComponent<CardProps, {}> {
public render() {
return <Card>Test</Card>;
}
} Looking at the error you posted I can't find any code that looks like that. What version of |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
This is no longer an issue as of a month or two ago so I will close this. Sorry for the delay. |
@mlenser how did you solve it? |
@hazem3500 sorry, normally I document why these things are fixed. I believe it was solved by one of our dependency updates that came a few months after I opened this issue. I suggest updating all your dependencies and hopefully that'll solve it. |
Describe the bug
I have a design system based on material ui, using typescript. All stories work except any story including the
Card
orRadio
material ui component. I tried very simple cases that only import those components directly.When I run
start-storybook
orbuild-storybook
I get the following:To Reproduce
I can create a reproducable package if necessary, but it's a bit of work
Expected behavior
The stories build
Screenshots
System:
I tried this on Windows and Mac
Windows:
Mac:
The text was updated successfully, but these errors were encountered: