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.

[NETLIFY] "build.command" failed • Command failed with exit code 1: build-storybook -s ./public

See original GitHub issue

Describe the bug I installed storybook on my project. It works well on local using yarn storybook. But when I try to deploy on Netlify I have the following error :

2:20:13 PM: ┌─────────────────────────────┐
2:20:13 PM: │   "build.command" failed    │
2:20:13 PM: └─────────────────────────────┘
2:20:13 PM: ​
2:20:13 PM:   Error message
2:20:13 PM:   Command failed with exit code 1: build-storybook -s ./public
2:20:13 PM: ​
2:20:13 PM:   Error location
2:20:13 PM:   In Build command from Netlify app:
2:20:13 PM:   build-storybook -s ./public
2:20:13 PM: ​
2:20:13 PM:   Resolved config
2:20:13 PM:   build:
2:20:13 PM:     command: build-storybook -s ./public
2:20:13 PM:     commandOrigin: ui
2:20:13 PM:     publish: /opt/build/repo/public

To Reproduce Steps to reproduce the behavior:

I tried these but none of them worked.

yarn build-storybook
build-storybook -s ./public"
NODE_ENV=production build-storybook -s ./public

package.json

  "scripts": {
    "start": "gatsby clean && gatsby develop --port 8003",
    "build": "gatsby clean && gatsby build",
    "storybook": "NODE_ENV=production start-storybook -p 6006 -s ./public",
    "build-storybook": "NODE_ENV=production build-storybook -s ./public"
  }

Expected behavior Build success

System:

  System:
    OS: macOS Mojave 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  Binaries:
    Node: 10.16.0 - /usr/local/opt/node@10/bin/node
    Yarn: 1.19.2 - ~/.yarn/bin/yarn
    npm: 6.9.0 - /usr/local/opt/node@10/bin/npm
  Browsers:
    Firefox: 78.0.1
    Safari: 13.1.1
  npmPackages:
    @storybook/addon-actions: ^5.3.19 => 5.3.19 
    @storybook/addon-links: ^5.3.19 => 5.3.19 
    @storybook/addons: ^5.3.19 => 5.3.19 
    @storybook/react: ^5.3.19 => 5.3.19 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Steffi3rdcommented, Jul 17, 2020

Looks like every deploy on storybook official netlify are failed : https://app.netlify.com/sites/storybooks-official/deploys 🤔

0reactions
stale[bot]commented, Oct 4, 2020

Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build command failed with exit code 1 - Netlify Support Forums
I have tried to create a new site where the second to last commit is deployed. This commit was ok before September. But...
Read more >
Build fails on Command failed with exit code 1 or Command ...
Hey there Netlify Support. I'm running into an issue where my builds have started failing recently with two more generic error messages and...
Read more >
Command failed with exit code 1: npm run build - Support
Hey, I can't figure out why my app wont build on netlify. I tried building it locally it works, was checking for same...
Read more >
Build problem: command failed with exit code 1 - Support
I'm trying to deploy a small React application hosted on GitHub and I'm currently unable to do so due to this error. The...
Read more >
Build Failing. Error message: Command failed with exit code 1
Me and another dev have been trying to deploy a React site for several hours without success to both Vercel and Netlify.
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