If you are reporting a bug or requesting support, start here:
npm run story expect to work, but throws error instead
albert:ttt albertgao$ npm run storybook
> [email protected] storybook /Users/albertgao/codes/temp/ttt
> storybook start -p 7007 --metro-config $PWD/rn-cli.config.js
error: unknown option `--metro-config'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] storybook: `storybook start -p 7007 --metro-config $PWD/rn-cli.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/albertgao/.npm/_logs/2018-06-02T10_58_22_014Z-debug.log
react-native init test --template typescriptcd test && node setup.jsgetstorybookstorybook command with storybook start -p 7007 --metro-config $PWD/rn-cli.config.jsnpm run storybookFound a PR https://github.com/storybooks/storybook/pull/3694, but seems the updated content not work at all.
That is because you are using 3.4.6 but the option was added from 4.0.0-alpha.2 (#3209).
Thanks! It works now!
Has this feature been removed? This fails for me using 4.0.0-alpha.16
Most helpful comment
Has this feature been removed? This fails for me using
4.0.0-alpha.16