Git Product home page Git Product logo

Comments (11)

lorensr avatar lorensr commented on May 10, 2024 1

http://lorensr.me/segmented-control/

works now, thanks arunoda! 😊

from storybook-deployer.

arunoda avatar arunoda commented on May 10, 2024

Weird. Are you trying to deploy into the public gh-pages?

from storybook-deployer.

arunoda avatar arunoda commented on May 10, 2024

May be check your git project is commitable. No conflicts, etc.

from storybook-deployer.

kevinSuttle avatar kevinSuttle commented on May 10, 2024

No, into a GHE server.

from storybook-deployer.

lorensr avatar lorensr commented on May 10, 2024

I'm getting an error on the same line, reproducible with https://github.com/lorensr/segmented-control

macbook:segmented-control me$  git:(upstream ⚡ master) 1A npm ls @kadira/storybook-deployer
[email protected] /Users/me/gh/segmented-control
└── @kadira/[email protected] 
macbook:segmented-control me$  git:(upstream ⚡ master) nr deploy-storybook

> [email protected] deploy-storybook /Users/me/gh/segmented-control
> storybook-to-ghpages

=> Building storybook
/Users/me/gh/segmented-control/node_modules/@kadira/storybook-deployer/src/utils.js:15
  throw new Error(message);
  ^

Error: Exec code(1) on executing: git commit -m "Deploy Storybook to GitHub Pages"
undefined
    at Object.exec (/Users/me/gh/segmented-control/node_modules/@kadira/storybook-deployer/src/utils.js:15:9)
    at Object.<anonymous> (/Users/me/gh/segmented-control/node_modules/@kadira/storybook-deployer/bin/storybook_to_ghpages:38:14)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:429:10)
    at startup (node.js:139:18)
    at node.js:999:3

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/5.4.1_1/bin/node" "/usr/local/bin/npm" "run" "deploy-storybook"
npm ERR! node v5.4.1
npm ERR! npm  v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] deploy-storybook: `storybook-to-ghpages`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] deploy-storybook script 'storybook-to-ghpages'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the segmented-control package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     storybook-to-ghpages
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs segmented-control
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls segmented-control
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/me/gh/segmented-control/npm-debug.log

from storybook-deployer.

arunoda avatar arunoda commented on May 10, 2024

@lorensr let me check this now.

from storybook-deployer.

arunoda avatar arunoda commented on May 10, 2024

I just fixed this with a new version v1.1.0. Try to reopen or (asked me) if this is not yet fixed.

from storybook-deployer.

gusdaud-zz avatar gusdaud-zz commented on May 10, 2024

Hey @kevinSuttle be sure that storybook is located in .storybook folder otherwise it will fail.

@arunoda I think it should show a more helpful error message. Thanks

from storybook-deployer.

kevinSuttle avatar kevinSuttle commented on May 10, 2024

Thanks @gusdaud. @arunoda is it possible to run this as a webhook on the repo?

from storybook-deployer.

arunoda avatar arunoda commented on May 10, 2024

@kevinSuttle Not sure. If you are using CI I think it's possible.
May be you need to make sure, CI can push to GitHub.

from storybook-deployer.

shadiabuhilal avatar shadiabuhilal commented on May 10, 2024

I have faced the same issue, and I found the solution.
You need to create babel config file inside .storybook directory, to allow babel to build your project correctly.

Note: you can require the root babel config using babel.config.js file.

For more info please check https://storybook.js.org/docs/configurations/custom-babel-config/#docs-content

from storybook-deployer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.