issue with local addon after upgrading to storybook 10. #32900
-
|
I have react-vite setup and upgraded from storybook 9 to storybook 10. I have an addon that just adds a button which opens an external link. The addon is a single file: When migrating to storybook 10. I changed the addon reference from When I run storybook. I get a react compilation error. Can someone help please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Hi @jeffnorris1! I'm Dosu and I’m helping the storybook team. Storybook 10 no longer supports referencing local addon entry points using direct paths to To fix this:
If you want to keep things simple for a small tool, you can also put your toolbar code directly in Let me know if you need an example folder structure or build script! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.

For posterity sake, I got this to work by importing the addon directly into the manager.ts file and removing the reference to it in the addons array. This feels like a hack to have local addons and package addons not work similarly. It feels like it is a step backwards from how local addons worked with storybook before this "upgrade".