Skip to content
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

The error message for a missing addon that tries to load is very unclear #18448

Closed
RHeynsZa opened this issue Jun 9, 2022 · 7 comments
Closed

Comments

@RHeynsZa
Copy link

RHeynsZa commented Jun 9, 2022

Is your feature request related to a problem? Please describe
The error message when trying to load a non installed addon is really really undescriptive, and very confusing when trying to debug

WARN   Failed to load preset: {"type":"presets"} on level 1
ERR! TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Object

Describe the solution you'd like
Maybe something like Trying to import missing package, please check addons

Describe alternatives you've considered
Not being stupid, and actually checking my addons. Yes ive tried, but this something I struggle with in general

Are you able to assist to bring the feature to reality?
Yeah i can PR this, if it seems like a good idea

@milesj
Copy link

milesj commented Jun 20, 2022

I see this error when enabling the @storybook/addon-a11y addon.

@prewk
Copy link

prewk commented Jun 21, 2022

Your suggestion would've saved me an hour's work today

@chriskuech
Copy link

I keep adding storybook new to a project but after some npm installs this error occurs. It is pretty impossible to debug and I think my experience proves that this issue (at least sometimes) is unrelated to missing add-ons.

@lobaak
Copy link

lobaak commented Jun 23, 2022

We were also experiencing this on upgrading versions from 6.5.5 > 6.5.9.

@razzeee
Copy link

razzeee commented Jul 26, 2022

I'm also seeing this whenever I enable @storybook/addon-a11y

@shilman
Copy link
Member

shilman commented Jan 13, 2023

Ta-da!! 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 @next NPM tag to try it out!

npx sb@next upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Jan 13, 2023
@maciej-gurban
Copy link

maciej-gurban commented Mar 10, 2023

Can we get this fixed on 6.x as well? 7.x doesn't seem to play well with yarn pnp just yet

I have empty list of addons, and getting the same error when using framework: '@storybook/react-webpack5'. No problems when using framework: '@storybook/react'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants