-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
TypeError: The "id" argument must be of type string. Received an instance of Object #18801
Comments
I added the following to debug and workaround the issue.
This also fixed my issue with chromatic chromaui/chromatic-cli#618 |
Had the same issue (using vite), but turned out to be an addon defined in
|
Given @lukesiedle's discovery, it would be helpful if running Storybook failed with a more informative error in the case where an addon is used and that addon does not exist as a dependency in the project. E.g. something like:
I believe the fix could be implemented in
Since the name comes back as
For me, this results in this warning in my console:
A failure further upstream in |
Agreed, as I was migrating our addon to 7.0.0-alpha.18, I forgot to change (inside the addon project) - addons: ["../preset.js", "@storybook/addon-essentials"],
+ addons: ["../manager.js", "@storybook/addon-essentials"], So this error bubbled up. A more informative message would indeed be helpful. |
Changing - addons: ['@storybook/addon-links/preset'],
+ addons: ['@storybook/addon-links'], fixed it for me |
Fixed it for me too! Thanks for the tip |
We had this issue because |
I'm using storybook v6.5.12. I'm getting this same error. How to fix this? |
It just started happening to me, it broke down earlier, I made it work again, wento to work, came back to my personal project without touching a finger on it, and now it's just broken Edit: Hey, if you are using react above 17, webpack 5 compatibility and so on, get rid of '@storybook-addon-designs' if you have it, just solved my problem. |
I had the same issue with |
Thanks I solved it 😍 |
I removed |
Error message is really confusing. |
I needed to remove both add-ons in order to avoid that error
|
Zoinks!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.26 containing PR #20455 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
I am getting this issue only when I use yarns plug n play mode. If I install dependencies to I have tried following @shilman suggestion and try upgrading with However the upgrade process then fails at the babel migration step with error:
furthermore, if I revert and then use execute This leads me to believe in mycase there is a module resolution issue possibly with the .babelrc storybook is processing |
There is some issue with story book being unable to build in yarn plug n play mode seems related to babel dependecy resolution storybookjs/storybook#18801 (comment)
@kevzettler would you mind opening a new issue with a reproduction that we can take a look into? |
@shilman Looks like |
After running storybook-start or build-sb I get the following
The error doesn't stop the execution and after a few seconds I get to use storybook or build it. Unfortunately this might relate to Chromatic which I am trying to use.
chromaui/chromatic-cli#618
The text was updated successfully, but these errors were encountered: