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
staticDirs config fails on ci/cd pipeline ([Error: EEXIST: file already exists, mkdir /builds/dist/storybook/stories/assets) #18686
Comments
I believe that this is not an issue with Nx, since Nx is invoking the |
Hello 👋 I was also wondering if it could be possible not to fail if the directory already exists. I would like to be able to do something like that: staticDirs: [
{from: './assets', to: 'assets/'},
{from: '../../static-conf/common/icons/tails', to: 'assets/icons/tails'} ,
{from: '../../static-conf/common/icons/common', to: 'assets/icons/all'},
{from: '../../static-conf/taer/icons/custom', to: 'assets/icons/all'},
] It works quite well when I launch Storybook locally but as soon as I want to build it in order to deploy it, it fails because of the error @dean-g mentioned above: Being able to do that would be really helpful for the project I'm working on 😄 |
Storybook assets cannot currently be loaded by merging directories, so this fix makes sure files are loaded individually. storybookjs/storybook#18686
Both Lato and the icon font were not loading correctly since the CSS expects them to be available under a certain URL. This URL is available in the core app, but not storybook. This commit makes sure the assets load correctly in Storybook, giving us pretty icons and the right font. Storybook assets cannot currently be loaded by merging directories, so this fix makes sure files are loaded individually. storybookjs/storybook#18686
Same error here. staticDirs: [
{
from: "./../assets",
to: "assets/"
},
{
from: "./../node_modules/@internal/icon-font",
to: "assets/fonts"
}
] It works ok while serving it locally, but fails when trying to build
|
Same |
Have the same issue |
Same... Any work around? |
bump storybook to 7th version |
I did try to upgrade to version 7 but for other reasons my storybook is not working anymore. There is no way to fix this in version 6 ? |
My story book is failing with the following error after I moved my asset to staticDirs,
storybook version is: "@nrwl/storybook": "14.3.6",
Is there a way to copy the file instead of
mkdir
?Please advise
The text was updated successfully, but these errors were encountered: