Open FezVrasta opened 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.
index.html
contents.js
react.js
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?
I get the same errors....
any solution/progress?
I wonder what am I doing wrong...
this is my script:
I run it with NPM, and when I then serve the generated
index.html
, it complains aboutcontents.js
andreact.js
missing.In the console I get:
Why?