{"action":"created","issue":{"url":"https://api.github.com/repos/cssnext/cssnext/issues/200","labels_url":"https://api.github.com/repos/cssnext/cssnext/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/cssnext/cssnext/issues/200/comments","events_url":"https://api.github.com/repos/cssnext/cssnext/issues/200/events","html_url":"https://github.com/cssnext/cssnext/issues/200","id":102809327,"number":200,"title":"css.walkRules is not a function","user":{"login":"enguerran","id":701648,"avatar_url":"https://avatars.githubusercontent.com/u/701648?v=3","gravatar_id":"","url":"https://api.github.com/users/enguerran","html_url":"https://github.com/enguerran","followers_url":"https://api.github.com/users/enguerran/followers","following_url":"https://api.github.com/users/enguerran/following{/other_user}","gists_url":"https://api.github.com/users/enguerran/gists{/gist_id}","starred_url":"https://api.github.com/users/enguerran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enguerran/subscriptions","organizations_url":"https://api.github.com/users/enguerran/orgs","repos_url":"https://api.github.com/users/enguerran/repos","events_url":"https://api.github.com/users/enguerran/events{/privacy}","received_events_url":"https://api.github.com/users/enguerran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-24T14:40:39Z","updated_at":"2015-08-24T15:13:07Z","closed_at":null,"body":"I got this error message: \r\n\r\n```\r\n% cssnext style.css output.css\r\n\r\ncssnext encounters an error:\r\n\r\ncss.walkRules is not a function\r\nundefined\r\n\r\nIf this error looks like a bug, please report it here:\r\n❯ https://github.com/cssnext/cssnext/issues\r\n```\r\n\r\nSteps to reproduce are easy:\r\n\r\n```\r\nmkdir cssnext-issue && cd cssnext-issue\r\ntouch style.css\r\n```\r\n\r\nstyle.css contains the following:\r\n\r\n```css\r\n:root {\r\n  --vr-Color-red: #f00;\r\n}\r\n\r\nh1 {\r\n  color: var(--vr-Color-red);\r\n}\r\n```\r\n\r\nThen just install and run the CLI:\r\n\r\n```\r\nnpm i -D cssnext\r\ncssnext style.css output.css\r\n```\r\n\r\nResult:\r\n![screenshot from 2015-08-24 16 39 43](https://cloud.githubusercontent.com/assets/701648/9442974/d2dd46f4-4a7e-11e5-98b2-ea7e4e4b13bb.png)\r\n\r\nVersons:\r\n```\r\ncssnext --version\r\n1.8.3\r\nnode --version\r\nv0.12.7\r\nnpm --version\r\n2.11.3\r\n```\r\n\r\nMaybe a dependency is causing this issue, is not it?\r\n\r\n**[EDIT]**\r\nIt seems that the error message can be either:\r\n\r\n* `css.walkRules is not a function`\r\n* `undefined is not a function`"},"comment":{"url":"https://api.github.com/repos/cssnext/cssnext/issues/comments/134242355","html_url":"https://github.com/cssnext/cssnext/issues/200#issuecomment-134242355","issue_url":"https://api.github.com/repos/cssnext/cssnext/issues/200","id":134242355,"user":{"login":"enguerran","id":701648,"avatar_url":"https://avatars.githubusercontent.com/u/701648?v=3","gravatar_id":"","url":"https://api.github.com/users/enguerran","html_url":"https://github.com/enguerran","followers_url":"https://api.github.com/users/enguerran/followers","following_url":"https://api.github.com/users/enguerran/following{/other_user}","gists_url":"https://api.github.com/users/enguerran/gists{/gist_id}","starred_url":"https://api.github.com/users/enguerran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enguerran/subscriptions","organizations_url":"https://api.github.com/users/enguerran/orgs","repos_url":"https://api.github.com/users/enguerran/repos","events_url":"https://api.github.com/users/enguerran/events{/privacy}","received_events_url":"https://api.github.com/users/enguerran/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T15:13:07Z","updated_at":"2015-08-24T15:13:07Z","body":"May it be https://github.com/robwierzbowski/node-pixrem?\r\n:'(\r\n\r\n![screenshot from 2015-08-24 17 12 00](https://cloud.githubusercontent.com/assets/701648/9443779/5b0bb4b2-4a83-11e5-9821-7d61b0a8ef74.png)\r\n"}}