Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

--source-branch=story-test fails #61

Open
sOstrovsky opened this issue May 7, 2019 · 1 comment
Open

--source-branch=story-test fails #61

sOstrovsky opened this issue May 7, 2019 · 1 comment

Comments

@sOstrovsky
Copy link

sOstrovsky commented May 7, 2019

Have some problems with dynamic change of source branch.
Can anybody help me with that? Thanks in advance!

Error: Exec code(1) on executing: git push --force --quiet https://github.com/sOstrovsky/staticStoryBook.git story-test:gh-pages
undefined
    at Object.exec (/Users/***/WebstormProjects/Static StoryBook/node_modules/@storybook/storybook-deployer/src/utils.js:14:9)
    at Object.<anonymous> (/Users/***/WebstormProjects/Static StoryBook/node_modules/@storybook/storybook-deployer/bin/storybook_to_ghpages:69:14)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
    at internal/main/run_main_module.js:21:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy-storybook: `storybook-to-ghpages "--source-branch=story-test"
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] deploy-storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/***/.npm/_logs/2019-05-07T15_50_04_243Z-debug.log
@shadiabuhilal
Copy link

Try 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants