-
Notifications
You must be signed in to change notification settings - Fork 73
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
monorepo build fails due to storybookBaseDir check in v11.3.1 #975
Comments
I think the priority is to maintain compatibility, and since it appears to be stuck in a error callback (Maybe try/catch...), I think the following corrective approach should be taken.
- await checkStorybookBaseDir(ctx, stats);
+ ctx.options.storybookBaseDir !== '' && await checkStorybookBaseDir(ctx, stats); chromatic-cli/node-src/tasks/upload.ts Line 154 in da800dd
|
@Shunya078 there were some changes made on #974 that resulted in Chromatic adjusting how |
Thanks, @repomadness . In my repository, However, my concern is that #974 makes If If it is not necessary to maintain compatibility, this issue may be closed, but it is necessary to inform developers of this issue through the Document, Release Note, JSDoc, etc. |
Temporary workaround for those using the chromaui/action in Github Actions: specify v11.3.0 as the version to avoid this issue until it is resolved in a future release. - name: Publish to Chromatic
uses: chromaui/[email protected] |
Thanks all for chiming in. I overlooked that the current behavior for |
@ghengeveld |
Thanks, good to know it works for you! 🧡 |
Bug report
We have TurboSnap enabled in monorepo.
The working dir configuration is as follows
. ├── config file ├── backend │ ├── ... │ ... │ ├── frontend │ ├── .storybook │ ├── apps │ │ ├── appA │ │ │ ├── .storybook │ │ ├── appB │ │ │ ├── .storybook │ │ ├── ... │ │ ... │ └── package.json │ ├── config file
In the previous configuration, the build succeeded by specifying the
workingDir: frontend
. (Until v11.3.0)Starting with v11.3.1, if
storybookBaseDir: frontend
is not specified, the build will fail.Is this an intentional change?
If so, it would be a destructive change, so I will create an issue here just in case.
In v11.3.1, chromaui logs of failed builds are listed below.
In v11.3.0, chromaui is able to find the dir where the storybook is located.
The text was updated successfully, but these errors were encountered: