Skip to content

Incorrect error message #365

@jonniebigodes

Description

@jonniebigodes

Describe the bug

When the user enables the Visual test addon and attempts to run a build with uncommitted changes, including a new component or set of components, the user is presented with a cryptic error message that does not provide any context to the user or provide any guidance on how to resolve the issue. This can be seen in the following screenshot:

Image

cc @ghengeveld

To reproduce

  • Create a new Storybook project based on the following repository
  • Connect the repository to Chromatic
  • Run a build to establish the baselines
  • Enable the Visual test addon
  • Create a new branch
  • Add a new component or set of components, for example, src/components/Avatar/Avatar.tsx and src/components/Avatar/Avatar.stories.tsx
  • Run a local build with the new component
  • Observe the error message

It is worth noting that the CLI and the Chromatic project dashboard show the build as passed, but the user is not able to see the changes in the UI.

Image

Restarting Storybook and attempting to clear the cache does not resolve the issue.

Environment

Storybook Environment Info:

  System:
    OS: macOS 15.0.1
    CPU: (8) arm64 Apple M3
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    Yarn: 4.5.0 - ~/.nvm/versions/node/v18.19.0/bin/yarn <----- active
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
  Browsers:
    Chrome: 134.0.6998.89
    Edge: 134.0.3124.68
    Safari: 18.0.1
  npmPackages:
    @chromatic-com/storybook: ^3.2.4
    @storybook/addon-a11y: ^8.6.4 => 8.6.4
    @storybook/addon-coverage: ^1.0.5 => 1.0.5
    @storybook/addon-essentials: ^8.6.4 => 8.6.4
    @storybook/addon-interactions: ^8.6.4 => 8.6.4
    @storybook/addon-themes: ^8.6.4 => 8.6.4
    @storybook/blocks: ^8.6.4 => 8.6.4
    @storybook/manager-api: ^8.6.4 => 8.6.4
    @storybook/react: ^8.6.4 => 8.6.4
    @storybook/react-vite: ^8.6.4 => 8.6.4
    @storybook/test: ^8.6.4 => 8.6.4
    @storybook/test-runner: ^0.22.0 => 0.22.0
    @storybook/theming: ^8.6.4 => 8.6.4
    chromatic: ^11.25.2 => 11.26.1
    eslint-plugin-storybook: ^0.11.4 => 0.11.4
    msw-storybook-addon: ^2.0.2 => 2.0.4
    storybook: ^8.6.4 => 8.6.4

Metadata

Metadata

Assignees

Labels

bugClassification: Something isn't workingreleasedVerdict: This issue/pull request has been released

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions