pocotan001 / react-styleguide-generator

Easily generate a good-looking styleguide by adding some documentation to your React project.
http://pocotan001.github.io/react-styleguide-generator
MIT License
700 stars 76 forks source link

Example failing out-of-the-box: "Using removed Babel 5 option: base.stage" #28

Open i-a-n opened 8 years ago

i-a-n commented 8 years ago

Hey there, I'm just trying to run the basic example included in the README:

git clone git@github.com:pocotan001/react-styleguide-generator.git
cd react-styleguide-generator/example/
npm install
npm start

npm start fails and I traced it all the way to rsg failing with this error message:

    "msg": "[BABEL] ~/react-styleguide-generator/example/styleguide/src/contents-inter.js: Using removed Babel 5 option: base.stage - Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets while parsing file: ~/react-styleguide-generator/example/styleguide/src/contents-inter.js",

I tried this twice on clean installs, both removing and reinstalling react via NPM. Any ideas?

i-a-n commented 8 years ago

For the record, I believe this is broken because the stage-0 preset is not included in the .babelrc file.

I'm not 100% sure this is the only thing broken here, and I've switched to using react-styleguide-generator-alt, which is actively maintained.