Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Demo Build #1097

Open
patriziosotgiu opened this issue Jun 13, 2017 · 3 comments
Open

Error in Demo Build #1097

patriziosotgiu opened this issue Jun 13, 2017 · 3 comments

Comments

@patriziosotgiu
Copy link
Contributor

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
Copy link

ghost commented Jul 10, 2017

Hi,

Having same issue, any suggestion ????

@EightArmCode
Copy link

EightArmCode commented Jul 13, 2017

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
Copy link

mikezks commented Jul 31, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants