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

react.js and content.js missing? #26

Open FezVrasta opened 8 years ago

FezVrasta commented 8 years ago

I wonder what am I doing wrong...

this is my script:

const RSG = require('react-styleguide-generator');

const INPUT = 'app/components/**/*.js';
const OUTPUT = 'docs/styleguide';

var rsg = RSG(INPUT, {
    output: OUTPUT
});
rsg.generate();

I run it with NPM, and when I then serve the generated index.html, it complains about contents.js and react.js missing.

In the console I get:

"msg":"'import' and 'export' may appear only with 'sourceType: module'",
"time":"2016-05-20T15:34:40.307Z",
"v":0

Why?

astericky commented 8 years ago

I get the same errors....

JordanDDisch commented 7 years ago

any solution/progress?