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
On the newest version of Storybook (5.3.3) I am attempting to include both HTML and React stories together. They are successfully registered as stories in the sidebar UI, and I can click on them. Docs also display as a tab. However, the React stories do not show in the canvas viewer, instead I get this error: Expecting an HTML snippet or DOM node from the story: "Lots Of Colors" of "Product Tile". They do show up as expected in the docs view.
The HTML stories have the reverse problem. In the canvas view, they are rendered as expected. However, they show up as escaped HTML code in the docs view.
To Reproduce
Steps to reproduce the behavior:
Create a new React story
Create a new HTML story
Use addon-docs
Run storybook
Expected behavior
React components should always render without errors and HTML stories should always be rendered as HTML.
Screenshots
If applicable, add screenshots to help explain your problem.
This isn't supported by Storybook at the moment, but hopefully we'll get proper simultaneous multi-framework support this year. Closing this as a dupe to #3889
Didn't happen. Believe me, once it's possible we'll let everybody know very loudly. 😂 We'll try to be better about not giving specific timeframes for features we're not equipped to deliver. cc @ndelangen
That said, I've heard of people successfully rendering HTML stories inside @storybook/react, so you might search around for instances of that. It's just not officially supported right now.
Describe the bug
On the newest version of Storybook (5.3.3) I am attempting to include both HTML and React stories together. They are successfully registered as stories in the sidebar UI, and I can click on them. Docs also display as a tab. However, the React stories do not show in the canvas viewer, instead I get this error:
Expecting an HTML snippet or DOM node from the story: "Lots Of Colors" of "Product Tile".
They do show up as expected in the docs view.The HTML stories have the reverse problem. In the canvas view, they are rendered as expected. However, they show up as escaped HTML code in the docs view.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
React components should always render without errors and HTML stories should always be rendered as HTML.
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
System:
Environment Info:
System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Binaries:
Node: 9.3.0 - ~/.nvm/versions/node/v9.3.0/bin/node
npm: 6.1.0 - ~/.nvm/versions/node/v9.3.0/bin/npm
Browsers:
Chrome: 79.0.3945.117
Firefox: 69.0
Safari: 13.0.4
npmPackages:
@storybook/addon-a11y: ^5.3.3 => 5.3.3
@storybook/addon-actions: ^5.3.3 => 5.3.3
@storybook/addon-console: ^1.2.1 => 1.2.1
@storybook/addon-docs: ^5.3.3 => 5.3.3
@storybook/addon-info: ^5.3.3 => 5.3.3
@storybook/addon-links: ^5.3.3 => 5.3.3
@storybook/addon-storysource: ^5.3.3 => 5.3.3
@storybook/addon-viewport: ^5.3.3 => 5.3.3
@storybook/addons: ^5.3.3 => 5.3.3
@storybook/cli: ^5.3.3 => 5.3.3
@storybook/html: ^5.3.3 => 5.3.3
@storybook/react: ^5.3.3 => 5.3.3
@storybook/storybook-deployer: ^2.8.1 => 2.8.1
The text was updated successfully, but these errors were encountered: