-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Problems with HTML preview addon since v6.1.21 #14489
Comments
@jeanfredrik happy to help! i'll take a quick look and see if I can figure out what's going on and we can go from there. |
It seems like this is no longer an active issue. Thank you for taking a look! |
What was the motivation to close this issue? On newer versions, the plugin does still not work and I think it is good to have an issue for that and not close it if there is no solution jet. |
This was my workaround using yarn with storybook v6.3.6 and webpack v4 or v5. Fix Prettier dependency conflictin
Fix Prettier Critical Dependency Warningin
This also fixed my stenciljs/html source formatter for @storybook/addon-docs. @storybook/addon-docsSource Stenciljs/Raw HTML source Formatteradd a new file
in
|
this fixed it for me! Thanks @mpalpha! |
@mpalpha It looks like Ideally I would like to be able to generate new story source after story controls have been changed, but I'm not sure how to do that now with the latest storyContext param change. |
For Stencil.js v2.9.0 with Storybook v6.3.12 I use the following in
In at the top
and below
|
Adding this to {
"resolutions": {
"prettier": "2.3.0"
}
} I think maybe the plugin fails when there are multiple copies of prettier installed? |
Please try upgrading to v5.x of the addon and install |
was struggling to run addon with storybook v6.2.* - the HTML tab just didn't appear in addons tab no matter what. The issue was gone after migrating to storybook v7 |
I’m the main author of HTML preview addon @whitespace/storybook-addon-html and we have received several reports that the addon no longer works since storybook@6.1.21. I have tried to solve the issue (see whitespace-se/storybook-addon-html#42), but new issues have opened related to storybook@6.1.21 and storybook@6.2. I can see in the changelog entry for 6.1.21 that the transpilation of Prettier has been changed to work with IE11, but I don’t know if that is related.
Long story short, I need some assistance. I hope someone in the Storybook team or the community can point me in the right direction or help out in some other way 🙏
The text was updated successfully, but these errors were encountered: