-
Notifications
You must be signed in to change notification settings - Fork 71
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
TurboSnap Causing Built Storybook Publish to Fail #530
Comments
I can't answer much of what you're asking, except to say that |
Disabling |
I'm not sure, I think @ghengeveld would probably need to weigh in on what might be happening. |
Looks like the issue is that webpack has bundled chromatic-cli/bin-src/lib/getDependentStoryFiles.ts Lines 110 to 111 in 10e0044
Is checking if the "reason" ( I'm not sure why webpack is bundling the two things together in your SB but not the SBs we've tested in (my guess would be that your I guess the fix is @ghengeveld: Rather than matching the
WDYT? |
Just a note, the stats file that the vite plugin generates does not include any |
I'm having the same error, I got around building the storybook manually on my CI: - yarn build-storybook this skips the chromatic build command and uses the files from the uploaded folders in the -d argument |
Just bumped into this as well and a simple rename of the file got us going since there weren't any type annotations in play yet! 🎉 Happy to provide further details if it'd be useful, though it appears there's a good notion of what's up already? |
I had the same issue and as I wanted to leverage TurboSnap and the new storyStory format, removing |
@davincho that's very interesting about webpack 5. @victor-grajski -- I think I can infer from your configuration that you are using webpack 4 currently (or were at the time)? @wallacerenan @randallagordon -- are you also using webpack 4? |
Having same issue using react-vite instead of webpack |
This has just started to happen for me as well, without making changes that would seem to trigger this, making me wonder if there's been an update to chromatic to cause this to break. I've started to get |
I found the solution, please check this issue |
In my case the issue was a bad alpha version of Storybook that had a bug (8.3.0-alpha.5). Updating to the latest fixed it. |
Starting a new issue based on the discussion in #486, especially what @larrifax mentioned.
When I enable TurboSnap, Chromatic fails to publish my built Storybook and throws the following errors:
Could not retrieve dependent story files
andDid not find any CSF globs in preview-stats.json
.My
package.json
is at the root-level of my repo so I haven't yet needed to set a base directory, and trying various base directories with TurboSnap enabled haven't solved the issue either locally or using GitHub Actions.Before enabling TurboSnap, I did not encounter this issue.
Here's the output when I run
npx chromatic --only-changed
:Following that, I generated a trimmed
preview-stats.json
, and using a story which I know has changes, here are the relevant modules:And here's my
.storybook/main.js
for context:A couple of questions off the bat I have are:
storybook-config-entry.js
andstorybook-stories.js
? I don't see them anywhere in my folder structurestorybook-config-entry.js
module? I find it interesting that it's emptyThe text was updated successfully, but these errors were encountered: