-
Notifications
You must be signed in to change notification settings - Fork 109
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
[Bug] Cannot read property 'createExpressionStatement' of undefined #496
Comments
@davisuga-h thanks for the report. Are you able to narrow down which component this is happening in, and share that component here? It seems that react-docgen-typescript isn't able to find a display name for the component. |
@davisuga-h Could you try upgrading your typescript version to the latest and run storybook. I was facing the same issue and this resolved it for me. TS version that I'm using is 4.8.4 Hope this helps. Cheers! |
Thanks, it works for me also. I am working with Monorepo, so i changed the storybook from main package to each project, and forget to add the typescript on package.json |
What version of
vite
are you using?3.1.1
System info and storybook versions
System:
OS: Linux Mint 20.3 una
npmPackages:
"@storybook/addon-actions": "^6.5.12",
"@storybook/addon-essentials": "^6.5.12",
"@storybook/addon-interactions": "^6.5.12",
"@storybook/addon-links": "^6.5.12",
"@storybook/builder-vite": "^0.2.2",
"@storybook/react": "^6.5.12"
Binaries:
Node: v14.18.1
Yarn: 1.22.17
npm: 8.16.0
Browser:
Google Chrome
Describe the Bug
When I run
yarn storybook
, I get the following error:The text was updated successfully, but these errors were encountered: