addon-styling
addon-styling copied to clipboard
auto-configuration: don't duplicate addon registration
The auto configure script doesn't check to see if the addon already exists in the addon array before adding it again
Hi, I'm seeing the duplicate addon warning in a simple Storybook 7 set up with the @storybook/react-webpack5
framework and only '@storybook/addon-styling'
in my addons
array.
It looks like manager.ts, which includes the addons.register call, is getting included in two bundles that are both imported, so register is called twice. I can't figure out where each one is originally coming from. They each have different file contents since they have different imports that get inlined in the file. I see you followed the addon-kit template pretty closely too.
Hey @dkario your issue pertains to #80, this is a to-do item, specifically for the codemod
Awesome, thanks for the update