storybook-addon-html icon indicating copy to clipboard operation
storybook-addon-html copied to clipboard

Using the 'config' field

Open noahbald opened this issue 2 years ago • 2 comments

When running the addon in Storybook 7.0.26, I get the following warning.

You (or an addon) are using the 'config' preset field. This has been replaced by 'previewAnnotations' and will be removed in 8.0

If I remove this addon, the warning goes away.

noahbald avatar Jul 07 '23 04:07 noahbald

I'm also noticing this.

Occuring on Storybook 7.4.0 storybook-vite using @storybook/html and @storybook/html-vite

When fixed, this page could be "pinged" here

cotwitch avatar Sep 21 '23 17:09 cotwitch

Removing this line https://github.com/whitespace-se/storybook-addon-html/blob/main/preset.js#L15 seems to make the error go away in v7 of storybook.

From what I can tell, The change required for v7 appears to be that the config export is updated to previewAnnotations - however, since previewAnnotations is already there, it seems this addon is already correctly configured for v7.

Which leaves me thinking that it may be intentional to have both config and previewAnnotations exported. Although I don't know why - I have a theory with no basis or research, that it would be to support Storybook 6 & 7 at the same time.

arcticShadow avatar Oct 02 '23 02:10 arcticShadow