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
Describe the bug
With MDXv2 turned on, if I create a docs page in MDX and add a <Canvas> to that page that doesn't contain <Story> content, the "Show code" button on that <Canvas> says "No code available".
Describe the bug
With MDXv2 turned on, if I create a docs page in MDX and add a
<Canvas>
to that page that doesn't contain<Story>
content, the "Show code" button on that<Canvas>
says "No code available".Related to #17514
To Reproduce
Code: https://github.com/vgpena/sb-mdx (see stories/Test.stories.mdx)
Hosted copy: https://vgpena.github.io/sb-mdx/?path=/story/test--page
System
Environment Info:
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 1.22.18 - ~/.yarn/bin/yarn
npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
Browsers:
Chrome: 102.0.5005.61
Safari: 15.2
Additional context
<Canvas>
blocks that include<Story>
content continue to have the "Show code" button as expected.The text was updated successfully, but these errors were encountered: