rbardini / storybook-addon-paddings

🔲 A Storybook addon to add different paddings to your preview
https://storybook-addon-paddings.rbrd.in
MIT License
30 stars 2 forks source link

v4.0.3 breaks with Vite: missing "./dist/esm/preset/addDecorator.js" #35

Closed ponchique closed 1 year ago

ponchique commented 1 year ago

Hey @rbardini,

Thank you for the great add-on.

I tried to install v4.0.3 but the run was failing with this error:

12:35:48 PM [vite] Internal server error: Missing "./dist/esm/preset/addDecorator.js" export in "storybook-addon-paddings" package

As a solution, I had to downgrade to v4.0.0

You may be interested in this.

Thank you.

tobystokes commented 1 year ago

I suspect this is the same issue - general Storybook v7.0 compatibility - looks like addDecorator does not need to be applied any more.

rbardini commented 1 year ago

Seems related to https://github.com/rbardini/storybook-addon-playroom/issues/38. I'll try to release a new major version supporting Storybook 7.0 sometime next week, and hopefully this issue will go away with it 🤞

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

tobystokes commented 1 year ago

Can confirm all is working sweet again with storybook 7 and vite builder, thanks!