-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Version
System:
OS: Windows 11 10.0.26200
CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
Memory: 10.78 GB / 31.62 GB
Browsers:
Chrome: 143.0.7499.147
Edge: Chromium (142.0.3595.69)
Firefox: 146.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
Internet Explorer: 11.0.26100.7309
I am using `storybook-react-rsbuild` version `3.2.0`.Details
Hello!
I am hopeless to solve my Chromatic issue, so I am creating an issue here hoping it rings a bell since I am using storybook-react-rsbuild and it could be the source of my issue, similarly to #332 a few months ago.
I am working on a monorepo POC with multiple Storybook applications:
/apps
/home
/core
/modules
/management
/storybook <-----
/packages
/components
/storybook <-----
Those Storybook applications are using rsbuild + storybook-react-rsbuild and are configured to use Chromatic:
{
"$schema": "https://www.chromatic.com/config-file.schema.json",
"projectId": "Project:694091b0077ec66d8a8497d8",
"storybookBaseDir": "apps/home/storybook",
"zip": true
}
Some cases works fine, but there's a specific use in which I update a component in the /packages/components package and Chromatic is not detecting the change.
According to the following job log: https://github.com/patricklafrance/sg-next-architecture/actions/runs/20388646685/job/58594360161?pr=55 (section Chromatic - Packages), the problem seems to be that Chromatic cannot find the storybook-config-entry.js file:
03:44:27.455 Not found: /home/runner/work/sg-next-architecture/sg-next-architecture/packages/storybook/storybook-config-entry.js
I am wondering if that could be an issue with storybook-react-rsbuild ?
My repository is open source but requires at least a free Chromatic account to reproduce.
Reproduce link
https://github.com/patricklafrance/sg-next-architecture
Reproduce Steps
- Clone the repository and install the dependencies
- Change the text of the
/packages/components/HelloWorld.tsxcomponent for something likeHello World435346465487! - Using a terminal, go to the
packages/storybookfolder and execute the following command:pnpm dlx chromatic --project-token YOUR-TOKEN --working-dir packages/storybook --only-changed --debug - In the terminal log, you should see something like:
Not found: C:\XYZ\sg-next-architecture\packages\storybook\storybook-config-entry.js
WARNING:
- For Turbosnap to be enabled for a Chromatic project, the project must have at least 10 builds.
- Make sure you only change the
/packages/components/HelloWorld.tsxfile when reproducing the issue. When updated, some files likepackage.jsonfiles will disable Turbosnap.