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

TurboSnap disabled until base directory is set correctly #1031

Open
KyneSilverhide opened this issue Sep 4, 2024 · 1 comment
Open

TurboSnap disabled until base directory is set correctly #1031

KyneSilverhide opened this issue Sep 4, 2024 · 1 comment
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation

Comments

@KyneSilverhide
Copy link

KyneSilverhide commented Sep 4, 2024

Since we updated storybook and chromatic, we now have this issue each time we try to publish to chromatic (from CICD or from our own development laptops)

              × TurboSnap disabled until base directory is set correctly
              The base directory allows TurboSnap to trace files.
              Set the --storybook-base-dir option as the relative path from the repository root to the Storybook project root.
              Run @chromatic-com/turbosnap-helper to get your base directory value.
12:14:25.927  i Wrote Chromatic diagnostics report to chromatic-diagnostics.json

The settings IS set in the command line..
"chromatic": "npx chromatic --project-token=XXXXXXX --exit-zero-on-changes --storybook-base-dir=libs/care-common-lib/.storybook --build-script-name=build-storybook-lib"

I also tried to put the values in chromatic.config.json, but the issue persists (this solution was found on other similar issues)

{
  "onlyChanged": true,
  "projectId": "...",
  "storybookConfigDir": "./libs/care-common-lib/.storybook",
  "storybookBaseDir": "./libs/care-common-lib/.storybook",
  "zip": true
}

Versions used :

   "chromatic": "11.7.1",
   "@chromatic-com/storybook": "1.8.0",
   "@nx/storybook": "18.2.4",

Setting onlyChanged to false is our current workaround.

@KyneSilverhide KyneSilverhide added bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation labels Sep 4, 2024
@codykaup codykaup removed the Migrated label Oct 17, 2024
@alextrukhan
Copy link

Any suggestions how to fix this? or idea what is the root cause? @KyneSilverhide have you managed to fix the issue? we have same error but only on CI, on dev machines everything workd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation
Projects
None yet
Development

No branches or pull requests

3 participants