-
Notifications
You must be signed in to change notification settings - Fork 70
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
Chromatic + TurboSnap cannot find the base directory #971
Comments
I was facing this issue also. Specifying the |
The same issue |
HI @TheGreatLebowski @olegmanby , @gestureleft is correct. If you set the |
@ethriel3695 but the docs says if the base dir is same we don't need to mention, chromatic will auto detect 🤔 |
This doesn't appear to be documented, I happened to figure out the proper syntax by digging in the code. But, still not working for me. This doesn't entirely make sense:
which for me would be But, running
or run from the top-level yields
Would be nice if the tool could understand which I actually want..? Using Was this introduced here? #974 Any way to pin to a specific version of things to keep moving while sorting this out? |
We tried to eliminate a lot of the guesswork with the tool, but it's not perfect. You'll want to run the
It looks like there's a bit of a mix-up here, since
Correct; this change was introduced in the PR mentioned.
You can absolutely pin a CLI version if you hit a blocker like this while you get it sorted out! If you're looking to pin a specific version, you can follow this syntax example: |
We'll need to make this change to our docs since this is no longer the expected behavior. Prior to #974, the |
Thank you @repomadness! Setting |
@chris-erickson perfect!! 🙌 Glad that did the trick. One of our Engineers is working on #976 so I wanted to leave this as a reference for anyone else who stumbles across this thread in the meantime. |
Hello,
I'm actually working on a monorepo with this structure :
monorepo
-- storybook
-- nextjs
-- components
In my storybook package.json I use theses scripts :
I also have a chromatic.config.json file :
Sometimes it works, sometimes not.
I tried to change the chromatic script adding
--storybook-base-dir=./monorepo/storybook
(Even if it's defined in my chromatic config file)Here the error I am facing :
The error always seems to be from the base directory, but I tried different ways to defined it, I still have this error, any ideas ? 🙏
The text was updated successfully, but these errors were encountered: