-
Notifications
You must be signed in to change notification settings - Fork 382
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
node-sass error: expected a variable name (e.g. $x) or ')' for the parameter list for url #378
Comments
Please provide a copy-pastable sample of code showing your issue. Without this we cannot help. |
I am also seeing this error. I have attached some sample code for reference. @mixin image-sizes(
$prefix: "img",
$sizes: (
small: (
height: 23%,
width: 265px
),
medium: (
height: 46%,
width: 550px
),
large: (
height: 100%,
width: none
)
);
)
{
@each $size, $dimensions in $sizes {
@if $prefix {
$class: #{$prefix}-#{$size};
} @else {
$class: $size;
}
&.#{$class} {
width: nth($dimensions, 1);
max-width: nth($dimensions, 2);
}
}
} Output of libsass 3.4.1
|
@LouGriffith please provide a fully working copy-pastable code snippet. How are you calling this mixin? |
The linked node-sass patch has been released. I assume this is fixed but cannot confirm because a reproduction was not supplied. |
Hello,
I am actually watching a tutorial from youtube: https://www.youtube.com/playlist?list=PLillGF-RfqbbpWowfjk9_Vv8XUuTBFPut I have a several folder with .scss files that are imported into the main.scss @mixin add-border ($size, $color, $position) { After that I am including it in the _nav.scss (They are in two separate folders): .navbar{ This is in the main.scss: /* base style */ @import 'base/_variables.scss'; /* layots style */ @import 'layouts/_nav.scss'; /* modules style */ @import 'modules/_blocks.scss'; I tried moving the imports of the "layout style" before the "base style" and it still doesn`t work. Thank you in advance! :) |
I'm getting this error when using this:
expected a variable name (e.g. $x) or ')' for the parameter list for url
This appears to be a bug in node-sass: sass/node-sass#873
If you update your package.json to the latest version I suspect it will fix it.
The text was updated successfully, but these errors were encountered: