SC5 / sc5-styleguide

Styleguide generator is a handy little tool that helps you generate good looking styleguides from stylesheets using KSS notation
http://styleguide.sc5.io/
MIT License
1.26k stars 168 forks source link

Error in Demo Build #1097

Open patriziosotgiu opened 7 years ago

patriziosotgiu commented 7 years ago

I'm getting this error when running npm run demo

sc5-styleguide-fork git:(option-show-reference-numbers-bugfix) npm run demo

> sc5-styleguide@1.9.0 demo /Users/Patrizio/Sites/sc5-styleguide-fork
> gulp --gulpfile ./demo-gulpfile.js watch

[10:32:26] Using gulpfile ~/Sites/sc5-styleguide-fork/demo-gulpfile.js
[10:32:26] Starting 'styleguide:static'...
[10:32:26] Finished 'styleguide:static' after 8.93 ms
[10:32:26] Starting 'styleguide:generate'...
[10:32:27] Starting 'styleguide:applystyles'...
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Error in plugin 'kss-parser'
Message:
    Two sections defined with same number 1: "Colors and typography" and "Colors and typography"
[10:32:27] Finished 'styleguide:applystyles' after 936 ms
[10:32:27] Finished 'styleguide:generate' after 942 ms
[10:32:27] Starting 'styleguide'...
[10:32:27] Finished 'styleguide' after 5.43 μs
[10:32:27] Starting 'watch'...
[10:32:27] Finished 'watch' after 12 ms

When running npm run demo for the first time gulp builds and watches for changes, but the CSS styles are not loaded when visiting http://localhost:3000.

screen shot 2017-06-13 at 11 12 04 am

Running npm run demo for the second time returns the error above.

Running npm run build beforehand doesn't help either.

The issue seems to be related to the file lib/app/css/styleguide-app.css

ghost commented 7 years ago

Hi,

Having same issue, any suggestion ????

EightArmCode commented 7 years ago

I get the same error, except for me localhost:3000 won't load the page at all. Instead it says "localhost refused to connect."

mikezks commented 7 years ago

Try to rename _styleguide_default_styles.css to _styleguide_default_styles.css.bak. Afterwards ist should build correctly.

I have to test whether this file will be used within the styleguide though.