Closed 42tte closed 5 months ago
@whitespace-dev
@jeanfredrik
Please have a look at this when you got the time @jeanfredrik It is preventing us, and others, from upgrading Prettier
Is this project still alive?
I applied the patch manually for a local Storybook 7.4.1 Vue 3 project and the HTML panel seems to work fine.
I applied the patch manually for a local Storybook 7.4.1 Vue 3 project and the HTML panel seems to work fine.
How did you make it? Can you give us example?
I just copy/pasted the changes to the files under node_modules/@whitespace/storybook-addon-html/dist/esm
.
This was only for testing purposes and is of course not a production solution ;)
One could automate this with a patch file for deployment/production until the PR is merged.
You can use this pachage to manage patches: npm i patch-package
@Profesor08 Thanks a lot. I didn't know that one.
Would be amazing if the PR can be merged @jeanfredrik . It's currently blocking us on a project... Thanks for your work!
Would have loved an early Christmas gift 🎅 🎁
@jeanfredrik Would like this fixed!
I just copy/pasted the changes to the files under
node_modules/@whitespace/storybook-addon-html/dist/esm
. This was only for testing purposes and is of course not a production solution ;) One could automate this with a patch file for deployment/production until the PR is merged.
Great suggestion, I did just this using a patch via yarn for our project that is looking to use this add-on
@whitespace-dev, created a fork with storybook v7 changes along with the prettier v3 change: https://github.com/sovanyio/storybook-addon-html/tree/feature/sb-v7
Definitely uglier than what @42tte has, but utilizing this directly from my repo for another project. Didn't test the zx scripts or really anything beyond the build/utilization; its not backward compatible--but might be time for a breaking release for sb v7/prettier v3 support? :)
@jeanfredrik please accept the PR. Since we use Angular 17 and the new control flow syntax, we need to use Prettier 3.1 to be able to format the code according to the new rules. This is definitely a blocker for any Angular 17 project. See #110.
Seems like this project hasn't been updated in almost a year 😞
Fingers crossed this can be merged, and any necessary work required for Storybook 8 can too.
Unbelievable, again such issue with storybook ecosystem... always blocks some other upgrades just because such PRs never gets merged and deps version are far behind.
Hello everyone! Sorry for not taking a look at this. I will look into it now.
We just released version 6.0.0 which uses Storybook 8 and Prettier 3. Please try to update to the latest version and see if everything works. Create new issues if they are not.
Fixes #104