[NETLIFY] "build.command" failed • Command failed with exit code 1: build-storybook -s ./public
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like every deploy on storybook official netlify are failed : https://app.netlify.com/sites/storybooks-official/deploys 🤔
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!