S
S
Sergey Goryachev2016-10-11 16:36:54
Sass
Sergey Goryachev, 2016-10-11 16:36:54

Why does a compilation error occur when changing colors?

gulp watch
[16:32:59] Using gulpfile ~/public_html/sitename.loc/gulpfile.js
[16:32:59] Starting 'sass'...
[16:32:59] Starting 'scripts'...
events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: templates/sitename/asset/sass/template/slider.scss
Error: Invalid CSS after "...ground: #f0ede7": expected "}", was ""
        on line 3 of templates/sitename/asset/sass/template/slider.scss
>>     background: #f0ede7
   ----------------^
    at options.error (/home/sergey/public_html/sitename.loc/node_modules/node-sass/lib/index.js:292:26)

I give two options for the development of the problem)
The contents of the slider.scss file (option one, working):
.slider {
    background: #ffffff;
}

And the second option, which breaks just the whole gulp.
.slider {
    background: #f0ede7;
}

That is, I change the color to a different one, not necessarily to #f0ede7, as a matter of fact, only simple colors work.
Where to look for a problem?
PS: There are definitely no misprints in the color.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question