Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Interpolation with parent reference is not working #1365

Closed
niksy opened this issue Jan 31, 2016 · 1 comment
Closed

Interpolation with parent reference is not working #1365

niksy opened this issue Jan 31, 2016 · 1 comment

Comments

@niksy
Copy link

niksy commented Jan 31, 2016

Input Sass:

$bar: 'bar';

.foo {

    &--#{$bar} {
        color:red;
    }
}

Should give output CSS:

.foo--bar {
    color:red;
}

Thrown error is:

{
  "formatted": "Error: Invalid CSS after \".foo {\": expected \"}\", was \"&--$bar {\"\n        on line 13 of input/index.scss\n>> .foo {\n   ------^\n",
  "message": "Invalid CSS after \".foo {\": expected \"}\", was \"&--$bar {\"",
  "column": 7,
  "line": 13,
  "file": "/Users/niksy/Projects/node-sass-test/input/index.scss",
  "status": 1
}

Ruby version of Sass is OK.
Using this without parent reference selector also works OK.

Possibly related to sass/libsass#1825?

@xzyfer
Copy link
Contributor

xzyfer commented Feb 1, 2016

Thanks for the report @niksy. In future please mention what version of node-sass you're using.
Confirmed this is a LibSass regression. Tracking in sass/libsass#1904

@xzyfer xzyfer closed this as completed Feb 1, 2016
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Remove lib/ directory on clean
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants