{"action":"opened","issue":{"url":"https://api.github.com/repos/postcss/postcss/issues/611","labels_url":"https://api.github.com/repos/postcss/postcss/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss/issues/611/comments","events_url":"https://api.github.com/repos/postcss/postcss/issues/611/events","html_url":"https://github.com/postcss/postcss/issues/611","id":113172851,"number":611,"title":"Root#remove is deprecated. Use Root#removeChild","user":{"login":"oleersoy","id":1163873,"avatar_url":"https://avatars.githubusercontent.com/u/1163873?v=3","gravatar_id":"","url":"https://api.github.com/users/oleersoy","html_url":"https://github.com/oleersoy","followers_url":"https://api.github.com/users/oleersoy/followers","following_url":"https://api.github.com/users/oleersoy/following{/other_user}","gists_url":"https://api.github.com/users/oleersoy/gists{/gist_id}","starred_url":"https://api.github.com/users/oleersoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleersoy/subscriptions","organizations_url":"https://api.github.com/users/oleersoy/orgs","repos_url":"https://api.github.com/users/oleersoy/repos","events_url":"https://api.github.com/users/oleersoy/events{/privacy}","received_events_url":"https://api.github.com/users/oleersoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-24T17:19:02Z","updated_at":"2015-10-24T17:19:02Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using the [postcss-css-variables](https://github.com/MadLittleMods/postcss-css-variables) module.  I have a very simple setup.\r\n\r\ninput.css\r\n\r\n``` css\r\n:root {\r\n  --varA: 'value';\r\n}\r\n```\r\nprocess.js\r\n\r\n``` js\r\nvar postcss = require('postcss');\r\nvar cssvariables = require('postcss-css-variables');\r\n\r\nvar fs = require('fs');\r\n\r\nvar mycss = fs.readFileSync('input.css', 'utf8');\r\n\r\n// Process your CSS with postcss-css-variables\r\nvar output = postcss([\r\n        cssvariables(/*options*/)\r\n    ])\r\n    .process(mycss)\r\n    .css;\r\n\r\nconsole.log(output);\r\n```\r\n\r\nWhen I run:\r\n`node process.js` I get:\r\n\r\n``` console\r\nole@MKI:~/Sandbox/test1$ node process.js \r\nRoot#remove is deprecated. Use Root#removeChild\r\n/home/ole/Sandbox/test1/node_modules/postcss/lib/lazy-result.js:204\r\n            throw error;\r\n            ^\r\n\r\nTypeError: Cannot set property 'parent' of undefined\r\n    at Root.removeChild (/home/ole/Sandbox/test1/node_modules/postcss/lib/container.js:344:34)\r\n    at Root.removeChild (/home/ole/Sandbox/test1/node_modules/postcss/lib/root.js:37:49)\r\n    at Root.remove (/home/ole/Sandbox/test1/node_modules/postcss/lib/root.js:87:14)\r\n    at cleanUpNode (/home/ole/Sandbox/test1/node_modules/postcss-css-variables/index.js:45:16)\r\n    at Array.forEach (native)\r\n    at /home/ole/Sandbox/test1/node_modules/postcss-css-variables/index.js:242:22\r\n    at LazyResult.run (/home/ole/Sandbox/test1/node_modules/postcss/lib/lazy-result.js:201:20)\r\n    at LazyResult.sync (/home/ole/Sandbox/test1/node_modules/postcss/lib/lazy-result.js:188:32)\r\n    at LazyResult.stringify (/home/ole/Sandbox/test1/node_modules/postcss/lib/lazy-result.js:212:14)\r\n    at LazyResult.get (/home/ole/Sandbox/test1/node_modules/postcss/lib/lazy-result.js:241:25)\r\n\r\n\r\n```\r\n\r\nThoughs?\r\n\r\nOle"}}