-
Notifications
You must be signed in to change notification settings - Fork 70
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
Getting "Failed to extract stories from your Storybook" error in CI #703
Comments
I've been experiencing something similar. Just intermittent failing on the CI. When I run it again it seems to resolve itself. |
@thafryer we stopped using chromatic because we couldn't figure out what's the issue |
I have just encountered this issue whilst upgrading Storybook 6.5.15 -> 7.2.3 and Chromatic 5.2.0 -> 6.21.0 Everything seemed fine until Chromatic got to the Verifying Storybook stage
Debugging on the site, it looks like it is failing here addStoriesFromExports(fileName, fileExports) {
if (fileName.match(/\.mdx$/) && !fileName.match(/\.stories\.mdx$/) && scope.FEATURES?.storyStoreV7MdxErrors !== !1) because in my case Any known workarounds please? |
Got the same thing thing going on at work. We've disabled Chromatic for the time being because of this bug. |
tl;dr I had initially set const storybookConfig: StorybookConfig = {
features: {
storyStoreV7: false
}
// more config
} as I was having some other issues, which I had (incorrectly) attributed to this new v7 change. However, using the default |
@baileyandy Thanks for sharing that and reaching out. @visualjeff, Does this fix work for you? |
@bkiac I would love to help you re-enable Chromatic in your team's workflow. Please let me know how I can help in any way. |
So we made some progress. We finally figured out that Storybook7/Vite builder is having a problem with @storybook/testing-library. It causes a ignoredException and there is an open defect for this. None of which is problem with the Chromatic CLI other than the ignoredException causes the Chromatic validation to fail. Here is the open defect: storybookjs/testing-library#8 |
I had exact same issue with storybook 7
|
I seem to be running into a similar (but perhaps opposite) issue to @baileyandy. If I specify
If I use the following config, however, it succeeds.
I'm using
|
Seems like I'm experiencing a similar issue to @ianwremmel When
When I set my Storybook config to be:
the build succeeds - albeit with some console errors:
thus although it fails due to some console errors (missing property on some of my mock data), I still get a published build. I'm on
|
Seems like this was a silly issue from my side how I was mocking the SvelteKit page store as well as some missing imports. A deeper dive into debugging each of my stories solved the issue. |
I did end up getting around this, but I don't really know what the fix was. The project was small enough and I had enough peer conflicts that it ended up being easier to effectively start the project from scratch (and copy a bunch of files back). At this point, every package is up to date and everything works now. |
Hi folks, it looks like this issue has been solved by moving to |
It does seem solveable, but I'm not confident |
I just started getting this issue - using the chromaui/action@v1 action.
Output of npx envinfo --npmPackages
|
I just get the same error. It worked properly yesterday with the same version and setting. I tried to update to the last version Besides, it's not just happening on the chromaui/action@v1. It's also happening on the local chromaui CLI. I also tried the Should we reopen this issue or open a new issue? |
@hackily @ronny1020 just wanted to make sure you both saw that this should be fixed in #858 |
I see that, thank you @tevanoff |
Bug report
I can't publish certain projects to Chromatic. I have the exact same setup in a monorepo for two projects, one works fine (
packages/ui
), but the other (apps/web
) always throws an error in the CI. Locally both of them work as expected.Running
apps/web
package locally:Running
apps/web
in GitHub CI:The error is valid though, if I open the link there are no components in the Storybook build. I have no idea why they're not picked up in the CI.
I have another project
packages/ui
, which works both locally and CI as expected.This is my workflow file:
This is the storybook
main.js
andpreview.js
fromapps/web
and this is the storybook
main.js
,preview.js
frompackages/ui
Versions are the same in both projects:
The text was updated successfully, but these errors were encountered: