Skip to content

TurboSnap disabled until base directory is set correctly #1031

Open
@KyneSilverhide

Description

@KyneSilverhide

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugClassification: Something isn't workingneeds triageTracking: Issue needs confirmation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions