{"action":"created","issue":{"url":"https://api.github.com/repos/sass/node-sass/issues/1495","repository_url":"https://api.github.com/repos/sass/node-sass","labels_url":"https://api.github.com/repos/sass/node-sass/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/sass/node-sass/issues/1495/comments","events_url":"https://api.github.com/repos/sass/node-sass/issues/1495/events","html_url":"https://github.com/sass/node-sass/issues/1495","id":151476430,"number":1495,"title":"Heroku compile issues / Locking libsass version","user":{"login":"chrisforrette","id":126919,"avatar_url":"https://avatars.githubusercontent.com/u/126919?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisforrette","html_url":"https://github.com/chrisforrette","followers_url":"https://api.github.com/users/chrisforrette/followers","following_url":"https://api.github.com/users/chrisforrette/following{/other_user}","gists_url":"https://api.github.com/users/chrisforrette/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisforrette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisforrette/subscriptions","organizations_url":"https://api.github.com/users/chrisforrette/orgs","repos_url":"https://api.github.com/users/chrisforrette/repos","events_url":"https://api.github.com/users/chrisforrette/events{/privacy}","received_events_url":"https://api.github.com/users/chrisforrette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-27T19:56:56Z","updated_at":"2016-04-27T22:44:14Z","closed_at":"2016-04-27T20:05:13Z","body":"Hello,\r\n\r\nI've got a project using `node-sass` and Heroku and I'm leveraging the `postinstall` script to compile the CSS on deployment. Today I ran a deploy for the first time in a couple of weeks and saw a bunch of odd compile errors that seemed to be centered around scope, which I cannot reproduce locally.\r\n\r\nThis error popped up from where I was using an `@extend` against a class declaration that was generated from within an `@each` loop in another file (`.ico-carat-right`):\r\n\r\n```json\r\n{\r\n  \"formatted\": \"Error: You may not @extend an outer selector from within @media.\\n       You may only @extend selectors within the same directive.\\n       From \\\"@extend .ico-carat-right\\\" on line 95 of static/scss/pages/team/_roster.scss\\n        on line 83 of static/scss/base/_shared.scss\\n>> \\n   --^\\n\",\r\n  \"message\": \"You may not @extend an outer selector from within @media.\\nYou may only @extend selectors within the same directive.\\nFrom \\\"@extend .ico-carat-right\\\" on line 95 of static/scss/pages/team/_roster.scss\\n\",\r\n  \"column\": 3,\r\n  \"line\": 83,\r\n  \"file\": \"/Users/chrisforrette/Code/remo/static/scss/base/_shared.scss\",\r\n  \"status\": 1\r\n}\r\n```\r\n\r\nWith this one I was setting a variable (`$color`) inside of an `@if/@else` statement, which seemed to munge the scope in the following lines:\r\n\r\n```json\r\n{\r\n  \"formatted\": \"Error: Undefined variable: \\\"$color\\\".\\n        on line 163 of static/scss/base/_typography.scss\\n>>   $notch-color: $color;\\n   ----------------^\\n\",\r\n  \"message\": \"Undefined variable: \\\"$color\\\".\",\r\n  \"column\": 17,\r\n  \"line\": 163,\r\n  \"file\": \"/Users/chrisforrette/Code/remo/static/scss/base/_typography.scss\",\r\n  \"status\": 1\r\n}\r\n```\r\n\r\nI noticed there was a new `node-sass` release a few days ago that bumped the `libsass` version, so I suspect that might be at the root of these issues. So I'm hoping to find help on a few things—first, I realized I don't know how libsass is installed and/or what version of libsass is used when I deploy to Heroku. Locally I have libsass 3.3.4 installed with brew, does `node-sass` get installed with libsass binaries (on Heroku)?\r\n\r\nAnd I know this is not quite in scope of this repo, but I'm hoping someone can tell me what Sass updates I may have missed where my code is now broken. Did some big scoping changes happen some time in the last few months that may have caused these issues?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/sass/node-sass/issues/comments/215253844","html_url":"https://github.com/sass/node-sass/issues/1495#issuecomment-215253844","issue_url":"https://api.github.com/repos/sass/node-sass/issues/1495","id":215253844,"user":{"login":"chrisforrette","id":126919,"avatar_url":"https://avatars.githubusercontent.com/u/126919?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisforrette","html_url":"https://github.com/chrisforrette","followers_url":"https://api.github.com/users/chrisforrette/followers","following_url":"https://api.github.com/users/chrisforrette/following{/other_user}","gists_url":"https://api.github.com/users/chrisforrette/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisforrette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisforrette/subscriptions","organizations_url":"https://api.github.com/users/chrisforrette/orgs","repos_url":"https://api.github.com/users/chrisforrette/repos","events_url":"https://api.github.com/users/chrisforrette/events{/privacy}","received_events_url":"https://api.github.com/users/chrisforrette/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T22:44:14Z","updated_at":"2016-04-27T22:44:14Z","body":"@chriseppstein Thanks!\r\n\r\n@mgreter Thanks for the ticket link—and for the record, I did several searches first, just not with matching terms :)"}}