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
Error thrown while rendering stories (<Canvas>, <Primary>, <Story>) when mdx have multiple story component (have different component id).
Only last story rendered correctly.
Error: Cannot read properties of undefined (reading 'rendered')
at updatePath (/node_modules/.cache/sb-vite/deps/chunk-FDCUOOAW.js?v=8e1e7aca:221:7))
at /node_modules/.cache/sb-vite/deps/chunk-FDCUOOAW.js?v=8e1e7aca:253:77
at runUpdates (/node_modules/.cache/sb-vite/deps/chunk-TDGLCOIR.js?v=8e1e7aca:879:17))
at batch (/node_modules/.cache/sb-vite/deps/chunk-TDGLCOIR.js?v=8e1e7aca:453:10))
at setStore (/node_modules/.cache/sb-vite/deps/chunk-FDCUOOAW.js?v=8e1e7aca:252:5))
at renderSolidApp (/node_modules/.cache/sb-vite/deps/storybook-solidjs_preview.js?v=8e1e7aca:107:3))
at StoryRender.renderToCanvas [as renderToScreen] (/node_modules/.cache/sb-vite/deps/storybook-solidjs_preview.js?v=8e1e7aca:144:23))
at async (/sb-preview/runtime.js:74:10839)
at async StoryRender.runPhase (/sb-preview/runtime.js:74:8766))
divinespear
changed the title
[Bug] Render error when mdx has multiple component stories
[Bug] Render error when mdx have multiple stories have different story id
Jun 20, 2023
divinespear
changed the title
[Bug] Render error when mdx have multiple stories have different story id
[Bug] Render error when mdx have multiple stories have different component id
Jun 21, 2023
Describe the bug
Error thrown while rendering stories (
<Canvas>
,<Primary>
,<Story>
) when mdx have multiple story component (have different component id).Only last story rendered correctly.
Steps to reproduce the behavior
Follow https://storybook.js.org/docs/react/writing-docs/mdx#working-with-multiple-components
<Canvas>
and/or<Story>
for imported stories.Expected behavior
Should render every
<Canvas>
,<Primary>
, and/or<Story>
correctly even if story id is different.Screenshots and/or logs
Error screenshot:
Source I wrote:
Environment
Additional context
After some inspection, I found render.tsx allows only one story id per doc...
Current workaround is put every stories into single story file even if story is for different component. (and side navbar will be hell :D)
The text was updated successfully, but these errors were encountered: