Closed julianCast closed 2 months ago
@julianCast
We made an update as of CLI v.11.3.1 to check storybookBaseDir against your repository root as opposed to the cwd when using TurboSnap.
As of CLI v.11.3.2, we are using the cwd relative to the repo root as the default value for storybookBaseDir; if your project is in a subdirectory and you use workingDir to change your cwd, you shouldn't need to include storybookBaseDir unless it deviates from the cwd.
Can you set the storybookBaseDir
option?
We made an update as of CLI v.11.3.1 to check storybookBaseDir against your repository root as opposed to the cwd when using TurboSnap.
As of CLI v.11.3.2, we are using the cwd relative to the repo root as the default value for storybookBaseDir; if your project is in a subdirectory and you use workingDir to change your cwd, you shouldn't need to include storybookBaseDir unless it deviates from the cwd.
Can you set the
storybookBaseDir
option?
Well, that worked THANK YOU! Now my question, just for me to understand. What I have done is to remove the storybookBaseDir
option.
But since this the structure of my repo:
packages/pk1/package.json - scripts from where we call storybook.
packages/pk1/src/storybook/.storybook
packages/pk1/storybook-static
Shouldn't I have to set storybookBaseDir: "./src/storybook"
since my cwd is set as workingDir: "./packages/pk1"
, or it will recursively look for the storybook folder?
Oh I think is because my main package.json has this script command:
"build-storybook": "yarn storybook build -c ./src/storybook/.storybook"
so it links the proper storybook folder
Close as it works now, thank you @cgbl-90 . Related issue https://github.com/chromaui/chromatic-cli/issues/971#issuecomment-2099410052
hey @julianCast regarding your other question, you can send us an email at support@chromatic.com and we will take a closer look
Describe the bug
Having the following: Storybook: 8.2.5 React-Vite: 8.2.5 Turbosnap enabled (onlyChanged)
If I set
onlyChanged: false
everything works fine. I don't have anyvite.config.ts
file.Structure
Main.ts
Action.yml
I get the following error:
Reproduction link
Not provided
Reproduction steps
No response
System
Additional context
Wasn't happening in Storybook 7