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

_navbar.scss syntax error: Unclosed block #25521

Closed
a2nt opened this issue Jan 31, 2018 · 3 comments
Closed

_navbar.scss syntax error: Unclosed block #25521

a2nt opened this issue Jan 31, 2018 · 3 comments

Comments

@a2nt
Copy link

a2nt commented Jan 31, 2018

Trying to compile following file with yarn + webpack:
app.scss

@import "../../../node_modules/bootstrap/scss/functions";
@import "../../../node_modules/bootstrap/scss/variables";
@import "../../../node_modules/bootstrap/scss/mixins";
@import "../../../node_modules/bootstrap/scss/root";
@import "../../../node_modules/bootstrap/scss/reboot";
@import "../../../node_modules/bootstrap/scss/type";
@import "../../../node_modules/bootstrap/scss/images";
@import "../../../node_modules/bootstrap/scss/code";
@import "../../../node_modules/bootstrap/scss/grid";
@import "../../../node_modules/bootstrap/scss/tables";
@import "../../../node_modules/bootstrap/scss/forms";
@import "../../../node_modules/bootstrap/scss/buttons";
@import "../../../node_modules/bootstrap/scss/transitions";
@import "../../../node_modules/bootstrap/scss/dropdown";
@import "../../../node_modules/bootstrap/scss/button-group";
@import "../../../node_modules/bootstrap/scss/input-group";
@import "../../../node_modules/bootstrap/scss/custom-forms";
@import "../../../node_modules/bootstrap/scss/nav";
@import "../../../node_modules/bootstrap/scss/navbar";
@import "../../../node_modules/bootstrap/scss/card";
@import "../../../node_modules/bootstrap/scss/breadcrumb";
@import "../../../node_modules/bootstrap/scss/pagination";
@import "../../../node_modules/bootstrap/scss/badge";
@import "../../../node_modules/bootstrap/scss/jumbotron";
@import "../../../node_modules/bootstrap/scss/alert";
@import "../../../node_modules/bootstrap/scss/progress";
@import "../../../node_modules/bootstrap/scss/media";
@import "../../../node_modules/bootstrap/scss/list-group";
@import "../../../node_modules/bootstrap/scss/close";
@import "../../../node_modules/bootstrap/scss/modal";
@import "../../../node_modules/bootstrap/scss/tooltip";
@import "../../../node_modules/bootstrap/scss/popover";
@import "../../../node_modules/bootstrap/scss/carousel";
@import "../../../node_modules/bootstrap/scss/utilities";
@import "../../../node_modules/bootstrap/scss/print";

Getting following error (same issue at line 246):

ERROR in ./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/lib?{"sourceMap":true,"plugins":[null,null]}!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./site/src/scss/app.scss
    Module build failed: Syntax Error 
    
    (298:4) Unclosed block
    
      296 | 
      297 |   .navbar-toggler-icon {
    > 298 |     background-image: $navbar-dark-toggler-icon-bg;
          |    ^
      299 |   }
      300 | 

But it works ok with background-image commented out

@mdo
Copy link
Member

mdo commented Jan 31, 2018

I imagine something is getting hung up on the value of that variable with our data URI image. Probably doesn't like the space after the comma (I think I've seen that issue recently?).

@XhmikosR
Copy link
Member

You should report such issues in the project that throws the error.

As far as we are concerned, unless the code is not valid (by the CSS specs), then the tool you are using should be fixed...

@XhmikosR
Copy link
Member

Also, this is probably the same as #25211 so I'm gonna close it; keep the discussion there.

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