{"action":"created","issue":{"url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/162","labels_url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/162/comments","events_url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/162/events","html_url":"https://github.com/assetgraph/assetgraph-builder/issues/162","id":61076523,"number":162,"title":"Fails on Node v0.12.0","user":{"login":"silvenon","id":471278,"avatar_url":"https://avatars.githubusercontent.com/u/471278?v=3","gravatar_id":"","url":"https://api.github.com/users/silvenon","html_url":"https://github.com/silvenon","followers_url":"https://api.github.com/users/silvenon/followers","following_url":"https://api.github.com/users/silvenon/following{/other_user}","gists_url":"https://api.github.com/users/silvenon/gists{/gist_id}","starred_url":"https://api.github.com/users/silvenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvenon/subscriptions","organizations_url":"https://api.github.com/users/silvenon/orgs","repos_url":"https://api.github.com/users/silvenon/repos","events_url":"https://api.github.com/users/silvenon/events{/privacy}","received_events_url":"https://api.github.com/users/silvenon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/assetgraph/assetgraph-builder/labels/node%200.12","name":"node 0.12","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-13T14:29:46Z","updated_at":"2015-05-08T01:16:06Z","closed_at":null,"body":"Version 3.0.0.\r\n\r\n[Demo](https://dl.dropboxusercontent.com/u/22893249/tmp/assetgraph-test.zip).\r\n\r\nCommand:\r\n\r\n```sh\r\nbuildProduction --root assetgraph-test --outroot dist\r\n```\r\n\r\n```\r\n ...\r\n ✔ 0.000 secs: mergeIdenticalAssets\r\n ✘ ERROR: TypeError: buildProduction transform: minifyAssets transform: Cannot set property length of [object Object] which has only a getter\r\n            at HTMLDocument.core.Node.removeChild (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level1/core.js:662:28)\r\n            at HTMLDocument.<anonymous> (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level2/events.js:370:17)\r\n            at HTMLDocument.proto.(anonymous function) (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/utils.js:23:26)\r\n            at HTMLDocument.inheritFrom.removeChild (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level1/core.js:1667:47)\r\n            at traverse (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/assets/Html.js:904:30)\r\n            at Html.extendWithGettersAndSetters.minify (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/assets/Html.js:915:10)\r\n            at /usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/transforms/minifyAssets.js:5:23\r\n            at Array.forEach (native)\r\n            at minifyAssets (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/transforms/minifyAssets.js:3:41)\r\n            at Immediate._onImmediate (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/index.js:665:21)\r\n            at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n```\r\n\r\nThis was the initial error, before I started reducing the test case ([demo](https://dl.dropboxusercontent.com/u/22893249/tmp/assetgraph-test-original.zip)):\r\n\r\n```\r\n ...\r\n ✔ 0.000 secs: removeRelations\r\n ✘ ERROR: TypeError: buildProduction transform: externalizeRelations transform: Cannot set property length of [object Object] which has only a getter\r\n            at [object Object].core.Node.removeChild (node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level1/core.js:662:28)\r\n            at [object Object].<anonymous> (node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level2/events.js:370:17)\r\n            at [object Object].proto.(anonymous function) [as removeChild] (node_modules/assetgraph-builder/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/utils.js:23:26)\r\n            at HtmlScript.href (node_modules/assetgraph-builder/node_modules/assetgraph/lib/relations/HtmlScript.js:21:23)\r\n            at HtmlScript.Relation.refreshHref (node_modules/assetgraph-builder/node_modules/assetgraph/lib/relations/Relation.js:119:27)\r\n            at JavaScript.<anonymous> (node_modules/assetgraph-builder/node_modules/assetgraph/lib/assets/Asset.js:500:38)\r\n            at Array.forEach (native)\r\n            at JavaScript.url (node_modules/assetgraph-builder/node_modules/assetgraph/lib/assets/Asset.js:499:59)\r\n            at node_modules/assetgraph-builder/node_modules/assetgraph/lib/transforms/externalizeRelations.js:7:33\r\n            at Array.forEach (native)\r\n            at externalizeRelations (node_modules/assetgraph-builder/node_modules/assetgraph/lib/transforms/externalizeRelations.js:5:44)\r\n            at Immediate._onImmediate (node_modules/assetgraph-builder/node_modules/assetgraph/lib/index.js:665:21)\r\n            at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n```\r\n\r\nThis started happening with the exact same setup that previously worked, and it seems to happen with previous versions too, so it may be my fault somewhere and the demo might work for you.\r\n\r\nCan you give me some pointers for debugging? I'm desperate :smiley: "},"comment":{"url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/comments/100059691","html_url":"https://github.com/assetgraph/assetgraph-builder/issues/162#issuecomment-100059691","issue_url":"https://api.github.com/repos/assetgraph/assetgraph-builder/issues/162","id":100059691,"user":{"login":"monte-hayward","id":3780422,"avatar_url":"https://avatars.githubusercontent.com/u/3780422?v=3","gravatar_id":"","url":"https://api.github.com/users/monte-hayward","html_url":"https://github.com/monte-hayward","followers_url":"https://api.github.com/users/monte-hayward/followers","following_url":"https://api.github.com/users/monte-hayward/following{/other_user}","gists_url":"https://api.github.com/users/monte-hayward/gists{/gist_id}","starred_url":"https://api.github.com/users/monte-hayward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monte-hayward/subscriptions","organizations_url":"https://api.github.com/users/monte-hayward/orgs","repos_url":"https://api.github.com/users/monte-hayward/repos","events_url":"https://api.github.com/users/monte-hayward/events{/privacy}","received_events_url":"https://api.github.com/users/monte-hayward/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T01:16:06Z","updated_at":"2015-05-08T01:16:06Z","body":"same issue with v0.11.16\r\n(Like @silvenon , I had also reduced the test case by commenting out parts of buildProduction.js)\r\n\r\n$ grunt -dv --stack build\r\n✔ 0.000 secs: removeEmptyStylesheets\r\nWarning: buildProduction transform: inlineRelations transform: Cannot set property length of [object Object] which has only a getter Use --force to continue.\r\nTypeError: buildProduction transform: inlineRelations transform: Cannot set property length of [object Object] which has only a getter\r\n  at [object Object].core.Node.insertBefore (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level1/core.js:553:30)\r\n  at [object Object].<anonymous> (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level2/events.js:332:20)\r\n  at [object Object].proto.(anonymous function) [as insertBefore] (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/utils.js:23:26)\r\n  at [object Object].core.Node.appendChild (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/node_modules/jsdom/lib/jsdom/level1/core.js:671:17)\r\n  at HtmlStyle.extendWithGettersAndSetters.inline (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/lib/relations/HtmlStyle.js:56:19)\r\n  at /Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/grunt-reduce/node_modules/assetgraph-builder/lib/transforms/buildProduction.js:233:38\r\n  at Array.filter (native)\r\n  at inlineRelations (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/grunt-reduce/node_modules/assetgraph-builder/lib/transforms/buildProduction.js:215:20)\r\n  at Immediate._onImmediate (/Users/monte/GoogleDrive/Sites/demo/Fundwindr/node_modules/assetgraph/lib/index.js:668:21)\r\n  at processImmediate [as _immediateCallback] (timers.js:358:17)"}}