-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help to debug "Accessing nonexistent addons channel" error that appears with 3.2.10 #1892
Comments
Hey @mthuret, Please check if all the addons you're using are updated and are using the same version of A quick fix should be:
|
@ndelangen I'm having the same issue. Not sure if it is related to this problem but in my case (the storybook-router development) the addon versions within the example app (cra-kitchen-sink) and within my addon are the same. What surprised me is that if I use the storybook-router version from npm (instead of the linked one) everything works fine. I can of course provide the code if it might help. |
@ndelangen yes that was it because we're using renovate for updating our deps. I group the update and everyting is now fine. I'm closing this. @gvaldambrini feel free to reopen this one or a new one if you have more details on your issue. |
If the various storybook dependencies are different versions, it can cause strange issues like this one: storybookjs/storybook#1892
I have this problem after update @ storybook/addon-knobs and all another @storybook/* to 3.1.12 |
Had this happening for me too, all dependencies were at 3.2.13, so I looked into the each dependency and saw that they were relying on |
@colinswilliams That should not be necessary to add as a dependency.. If you remove it now, it should continue to work. If you have this problem, first thing to try is to remove |
@ndelangen, when I was troubleshooting, that was my first guess. This issue was only happening on npm run build-storybook, but not through just npm run storybook. |
@colinswilliams Are you using a lockfile? |
Ooph! Good call, forgot about. Wound up deleting node_modules, and deleted the package.lock, removed @storybook/addons from package.json, and it worked. I'm assuming that when we added knobs later in the project, the lockfile referenced different versions of addons, giving us the error. |
The joy of lockfiles ey? 😒 I'm happy this resolved the problem. |
Did something happen with v3.2.15? I tried deleting |
@TroySchmidt I have the same problem. now I fix it by reinstall |
I have the same issue currently |
Ran into this as well after upgrading storybook and various addons to |
I just fought with this same issue for the past few hours. Luckily, I had success with @petekp’s solution. |
See #1981 (comment) |
Played with deleting files, reinstalling, etc and made the local version work. But the CI build with VSTS using a custom agent that builds with fresh versions of the files using npm.cmd it results in no add-ons panel every time. |
@TroySchmidt I'm real sorry you're experiencing these issues, We're working hard resolving the issue, but it's a non-trivial problem to solve. @Hypnosphi has proposed a solution that involves moving the dependency of the @storybook/addons package to a peerDependency. |
@Hypnosphi @ndelangen update on using alpha.4 it is back to building locally with the panels showing. But now I am getting a undefined error in KnobManager when it is trying to The actions panel is working properly. CI build still no panels show up but interestingly enough the same error for Knobs is showing up there. |
if still you facing the same issue , try this showAddonPanel: false, in config.js |
Hi there,
We use storybook along argos-ci to perform some visual regression testing. Since the release of 3.2.10, our build break with this error: Accessing nonexistent addons channel.
I have a hard time understanding what is the change causing this. We were using 3.2.6 for the addons lib and the warning was already here.
Here is the code that glue storybook with argos: https://github.com/algolia/react-instantsearch/blob/master/test/regressions/tests.js
I read some stuff about mocking the channel like storyshots does, I tried to mimic it but without any luck.
Does someone has any ideas?
The text was updated successfully, but these errors were encountered: