SCSS compiling error - Invalid CSS after
See original GitHub issueBug reports must include:
Operating system and version (Windows, macOS, Android, iOS)
macOS Big Sur - Version 11.2.1
Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser)
The issue is not browser-specific
A reduced test case or suggested fix using CodePen or JS Bin
I have installed bootstrap
using node. npm i bootstrap@next
and imported bootstrap.scss
into my custom stylesheet to customize. styles.scss
When I try to compile it gives the following kind of errors
error scss/styles.scss (Line 9 of node_modules/bootstrap/scss/mixins/_table-variants.scss: Invalid CSS after "... #{$background}": expected "{", was ";")
I have also posted a question on the StackOverflow https://stackoverflow.com/questions/66148648/bootstrap-5-beta-scss-compiling-error-invalid-css
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
SASS Error : Invalid CSS after " expected pseudoclass or ...
The Compiler interpretes "margin:" as element ( <margin></margin> ) because after the colon is no space and thefor tries to handle it as...
Read more >"Error: Invalid CSS after" while compiling theme - Drupal
Problem/Motivation When trying to compile the theme, custom droopler_theme gives error. Please note that compiling breaks/stops.
Read more >Resolve the "Sass::SyntaxError: Invalid CSS" error in Liferay 6.1
Issue: Liferay 6.1 uses the dynamic CSS filter to parse Sass CSS. The dynamic CSS filter will validate the SASS/CSS and compile the...
Read more >Error: Invalid CSS after (node-sass) - BigCommerce Support
error editing/preview theme locally using Stencil CLI - Error: Invalid CSS after (node-sass). Hi,. I've installed a theme "roots theme" and ...
Read more >Npm run compile:sass error - The freeCodeCamp Forum
“formatted”: “Error: Invalid CSS after “ck”: expected “{”, was “”\n on line 2 of sass/abstracts/_mixins.scss\n from line 1 of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m getting this error with
Which are all fairly recent.
Am I missing a dependency?
I’ve also attempted switching from node-sass to dart-sass and I get the same error, just formatted nicer.
However, that is with dart-sass 1.25.0. npm doesn’t think that 1.32.11 exists.
Rolling back to bootstrap-sass 3.3.7 solves it for now.
Just wanted to confirm it is a sass/scss compiler issue. I had “Sass 3.4.23 (Selective Steve)” from “apt-get install ruby-sass”. Had to remove it and grab the latest Dart Sass 1.32.11 @ https://github.com/sass/dart-sass/releases/tag/1.32.11
Problem solved.