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
Storybook crashes - TypeError: Cannot read property 'isLeaf' of undefined #13687
Comments
I've run into this as well, but only if I have a |
Happens to me as well when using button.stories.tsx button.stories.mdx This will break: |
I've experienced the same bug on the latest stable version, v6.1.20. What's weird in my case is I have a folder with both an I can confirm flammangj's comment about changing the title for either the mdx or js file will fix the issue for me. |
This sounds like a bug with the new sidebar implementation introduced in 6.1. Does anybody have a repro repo they can share? |
@shilman I'll make demo repo tomorrow. |
https://github.com/YozhEzhi/storybook-6-crash-demo Steps to reproduce:
|
Does anyone know if this has been fixed yet ? What is the way around it ? |
If you inspect your browser console, you should see this warning:
So the workaround is to follow the instructions: this isn't intended to work in Storybook. That said, Storybook shouldn't crash in this state, so we'll fix the bug in the next week or two. |
☝️ This should fix it. |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.6 containing PR #14502 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
The storybook crashes after we updated it to the latest versions. But if we removed all MDX documents then the storybook runs correctly as expected. If we have a least one MDX document then the StoryBook crashes again.
Versions:
"react": "^17.0.1",
"@storybook/addon-actions": "6.1.14",
"@storybook/addon-docs": "6.1.14",
"@storybook/addon-knobs": "6.1.14",
"@storybook/addon-links": "6.1.14",
"@storybook/addon-viewport": "6.1.14",
"@storybook/react": "6.1.14",
Environment Info:
System:
OS: macOS 11.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 14.15.2 - ~/.nvm/versions/node/v14.15.2/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.9 - ~/.nvm/versions/node/v14.15.2/bin/npm
Browsers:
Chrome: 87.0.4280.141
Safari: 14.0.2
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: