question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build-storybook breaks on linux in CI

See original GitHub issue

Describe the bug

Storybook build fails on Docker container with node:12 image (in GitLab CI) https://github.com/nodejs/docker-node/blob/41ea0562287bbf98693572c9228edc1beb7fd709/12/alpine3.12/Dockerfile

info @storybook/react v6.1.0
info 
info => Cleaning outputDir /builds/.../.storybook-out
ERR! Error: EISDIR: illegal operation on a directory, copyfile '/.../.storybook-out' -> '/root/.local/share/Trash/files/963272c4-1efa-4f38-81d7-d95364db9e0d'
ERR!  [Error: EISDIR: illegal operation on a directory, copyfile '/.../.storybook-out' -> '/root/.local/share/Trash/files/963272c4-1efa-4f38-81d7-d95364db9e0d'] {
ERR!   errno: -21,
ERR!   code: 'EISDIR',
ERR!   syscall: 'copyfile',
ERR!   path: '/.../.storybook-out',
ERR!   dest: '/root/.local/share/Trash/files/963272c4-1efa-4f38-81d7-d95364db9e0d'
ERR! }

Definitely related to this: https://github.com/storybookjs/storybook/commit/9d4264b9c9c3125b23349abc2b202ad50571c213 and this: https://github.com/sindresorhus/trash/issues/92

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
russellwpattersoncommented, Dec 17, 2020

We’re also experiencing this in our CI system. I believe it’s due to the outputDir being a docker volume. Looks like the way these deletes happened changed in 6.1.x. I’ll be submitting a PR soon for a simple fix that just empties the folder instead of removing and recreating it.

2reactions
shilmancommented, Nov 23, 2020

Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.3 containing PR #13211 that references this issue. Upgrade today to the @latest NPM tag to try it out!

npx sb upgrade

Closing this issue. Please re-open if you think there’s still more to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI options - Storybook
Storybook comes with two CLI utilities: start-storybook and build-storybook . Storybook collects completely anonymous data to help us improve user experience.
Read more >
Storybook - GitLab Docs
Stories can be added for any Vue component in the gitlab repository. To add a story: Create a new .stories.js file in the...
Read more >
storybook err_ossl_evp_unsupported - You.com | The Search ...
Describe the bug When I running the cmd line ̀yarn build-storybook -c ... Environment Info: System: OS: Linux 5.11 Ubuntu 20.04.3 LTS (Focal...
Read more >
Amazon.com: Little Bunny's Own Storybook
Amazon.com: Little Bunny's Own Storybook: 9781988468037: Welwood, ... and it encourages children to use their imaginations to create stories of their own.
Read more >
sbg-storybook - npm
[Updating to New Releases](#updating-to-new-releases) - [Sending Feedback](#sending-feedback) - [Folder Structure](#folder-structure) - [Available ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found