Sass Invalid CSS Error: expected expression
Based on your error message (error sass/test.sass
) I can tell you're using the .sass
extension for a Scss file. Change your file name to style.scss
.
Sass and Scss use two different and incompatible syntaxes.
node-sass invalid CSS
The syntax is incorrect for node-sass.
You have defined the font variable correctly in fonts.scss but you need to import the font file into your Nav.scss file if you haven't already with:
@import "PATH/fonts.scss";
You then just need to reference the variable like so:
font-family: $roboto;
Sass invalid css error on compile in live sass compiler
It looks like you're using the .sass file extension for index.sass
for a scss file. You need to change it to use the scss
file extension for it to compile.
See also:
Sass Invalid CSS Error: "expected expression"
Error: Invalid CSS, while converting SASS to CSS
Dart-based npm
package dart-sass
worked. Ruby-based Sass does not support @use
usage.
SASS 'Invalid css error' when using variable from imported module
The @use
is not currently supported in node-sass (as of v4.14.1) and is only available in dart-sass
Related Topics
Http.Post_Form in Ruby with Custom Headers
Shading Mask Algorithm for Radiation Calculations
Rails 3.2 Create a Form That's Used in the Footer of Every Page
There Is a Way to Handle 'After_Save' and 'After_Destroy' "Equally"
How to Escape the Vertical Bar When Doing Command Line with Ruby
New Way of Creating Hashes in Ruby 2.2.0
Passing Variables on the Command Line to a Cucumber Test
Error When Starting Sinatra: "Tried to Create Proc Object Without a Block"
How to Parse Mailbox File in Ruby
How to Serialize a Ruby Digest::Sha1 Instance Object
How to Install Ruby System-Wide Using Rbenv
Does 'Upcase!' Not Mutate a Variable in Ruby
Quote All Fields in CSV Output
Gem Install JSON Fails with Redifinition of Struct Timezone/Timespec
Active Resource Complaining About Expects an Hash