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.

Storybook fails: file already exists, mkdir '/builds/dist/storybook/stories/assets'

See original GitHub issue

My story book is failing with the following error after I moved my asset to staticDirs,

staticDirs: [
    { from: '../../../src/assets', to: 'assets' },
  ],

info => Using angular project with "tsConfig:/builds/libs/stories/.storybook/tsconfig.json"
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^
[Error: EEXIST: file already exists, mkdir '/builds/dist/storybook/stories/assets'] {
  errno: -17,
  code: 'EEXIST',
  syscall: 'mkdir',
  path: '/builds/dist/storybook/stories/assets'
}


storybook version is: "@nrwl/storybook": "14.3.6",

Is there a way to copy the file instead of mkdir?

Please advise

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mandarinicommented, Jul 8, 2022

Hi there @dean-g ! I’ll get to it next week! Unless @Coly010 can help!

0reactions
mandarinicommented, Jul 22, 2022

I will be closing this for now @dean-g , and please ping me again if this persists, and we can reopen. I will ping the Storybook team to see if they can help, too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

file already exists, mkdir '/storybook-static/favicon.ico' #16732
I created a new project in my junk tmp folder, to tryout a PR, and got an error on saying that the C:\Users\Mark\dev_home\tmp\New...
Read more >
Configure Storybook
Configure Storybook. Storybook is configured via a folder called .storybook , which contains various configuration files. Note that you can change the folder ......
Read more >
Why on trying to install ``storybook`` I get error as ``Error ...
Now that I want to install storybook using npx storybook init I am getting error as Error: EEXIST: file already exists, mkdir 'C:\Users\nEW' ......
Read more >
storybook/addon-docs - npm
Document component usage and properties in Markdown. Latest version: 6.5.15, last published: 5 days ago. Start using @storybook/addon-docs ...
Read more >
[Solved] Why on trying to install ``storybook`` I get error as ...
Abby Asks: Why on trying to install ``storybook`` I get error as ``Error: EEXIST: file already exists, mkdir 'C:\Users\nEW' command not ...
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