-
-
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
[Bug]: Error when importing component from mdx: Unexpected dependency: false #19897
Comments
Did you manage to get this working? I have the exact same setup as you, where Storybook breaks as soon as I import my Button component to show the args table. I did have it working for a brief minute, but it broke when I restarted Storybook. Edit:
|
It was fixed in a newer release, I'm currently on beta 12. Here's what my mdx file looks like
|
Awesome! This detail is exactly what I didn't find in the docs: Thank you 🙌 |
Responding to this because I'm still getting this error on the most recent I've made a reproduction repo where this occurs with the out of the box Button component and a |
Also happens in |
@jnschrag I tested your repro on the latest prerelease and it appears to be fixed. Please give it a try!
|
I have reproduced this error after renaming https://github.com/dev-nicolaos/sb-bug-repro This is due to an incorrect value of |
Changing this to a documentation issue. We need to catch this error and provide a more useful error message. Will handle as part of #20496 to reduce the number of issues. |
@shilman While in their specific case the issue is closed, in my case I want to add my own component after the story, using the original component the story use, and I'm getting this error... Here is a repro: https://codesandbox.io/p/sandbox/romantic-shockley-ghnrvc Thanks ✨ |
I was able to fix this error by adding the extension when importing a component in the mdx file: from @Yonben https://codesandbox.io/p/sandbox/strange-murdock-rs60pn |
Thanks for your comment @renrizzolo . What you found is a workaround though, not a fix. After talking with the SB team a more specific bug was open for that issue. |
Describe the bug
In sb 7 alpha 50, I am trying to use the documented example of
ArgsTable
in an mdx file. It causes an error in the console.WARN 🚨 Extraction error on app\components\buttons\buttons.docs.mdx: Error: Unexpected dependency: false
To Reproduce
My button component looks like this:
Additional context
No response
The text was updated successfully, but these errors were encountered: