{"action":"created","issue":{"url":"https://api.github.com/repos/jkphl/svg-sprite/issues/68","labels_url":"https://api.github.com/repos/jkphl/svg-sprite/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/jkphl/svg-sprite/issues/68/comments","events_url":"https://api.github.com/repos/jkphl/svg-sprite/issues/68/events","html_url":"https://github.com/jkphl/svg-sprite/issues/68","id":67935731,"number":68,"title":"\"{}\" is not a valid mode configuration","user":{"login":"Johnius","id":773680,"avatar_url":"https://avatars.githubusercontent.com/u/773680?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnius","html_url":"https://github.com/Johnius","followers_url":"https://api.github.com/users/Johnius/followers","following_url":"https://api.github.com/users/Johnius/following{/other_user}","gists_url":"https://api.github.com/users/Johnius/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnius/subscriptions","organizations_url":"https://api.github.com/users/Johnius/orgs","repos_url":"https://api.github.com/users/Johnius/repos","events_url":"https://api.github.com/users/Johnius/events{/privacy}","received_events_url":"https://api.github.com/users/Johnius/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jkphl/svg-sprite/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"jkphl","id":4446936,"avatar_url":"https://avatars.githubusercontent.com/u/4446936?v=3","gravatar_id":"","url":"https://api.github.com/users/jkphl","html_url":"https://github.com/jkphl","followers_url":"https://api.github.com/users/jkphl/followers","following_url":"https://api.github.com/users/jkphl/following{/other_user}","gists_url":"https://api.github.com/users/jkphl/gists{/gist_id}","starred_url":"https://api.github.com/users/jkphl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkphl/subscriptions","organizations_url":"https://api.github.com/users/jkphl/orgs","repos_url":"https://api.github.com/users/jkphl/repos","events_url":"https://api.github.com/users/jkphl/events{/privacy}","received_events_url":"https://api.github.com/users/jkphl/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-12T17:13:25Z","updated_at":"2015-04-12T17:44:42Z","closed_at":"2015-04-12T17:23:22Z","body":"I'm using\r\n- elementary OS Luna\r\n- Node v0.10.36\r\n- Npm v1.4.28\r\n\r\nTo install svg-sprite I used `npm install -g svg-sprite`\r\nThen I did `svg-sprite *.svg`\r\n\r\nAnd got an error\r\n```ShellSession\r\n{ [ArgumentError: SVGSpriter.compile: \"{}\" is not a valid mode configuration] name: 'ArgumentError', errno: 1420362541 }\r\n\r\n/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/queue.js:90\r\n\tArray.prototype.push.apply(this._spriter._shapes, shape.distribute());\r\n\t                                                        ^\r\nTypeError: Cannot call method 'distribute' of undefined\r\n    at EventEmitter.SVGSpriterQueue.remove (/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/queue.js:90:58)\r\n    at /usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:544:30\r\n    at /usr/local/lib/node_modules/svg-sprite/lib/svg-sprite.js:184:3\r\n    at Object.module.exports [as svgo] (/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/transform/svgo.js:80:3)\r\n    at /usr/local/lib/node_modules/svg-sprite/lib/svg-sprite.js:168:38\r\n    at fn (/usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:641:34)\r\n    at Object._onImmediate (/usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:557:34)\r\n    at processImmediate [as _immediateCallback] (timers.js:354:15)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jkphl/svg-sprite/issues/comments/92094656","html_url":"https://github.com/jkphl/svg-sprite/issues/68#issuecomment-92094656","issue_url":"https://api.github.com/repos/jkphl/svg-sprite/issues/68","id":92094656,"user":{"login":"Johnius","id":773680,"avatar_url":"https://avatars.githubusercontent.com/u/773680?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnius","html_url":"https://github.com/Johnius","followers_url":"https://api.github.com/users/Johnius/followers","following_url":"https://api.github.com/users/Johnius/following{/other_user}","gists_url":"https://api.github.com/users/Johnius/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnius/subscriptions","organizations_url":"https://api.github.com/users/Johnius/orgs","repos_url":"https://api.github.com/users/Johnius/repos","events_url":"https://api.github.com/users/Johnius/events{/privacy}","received_events_url":"https://api.github.com/users/Johnius/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T17:44:42Z","updated_at":"2015-04-12T17:44:42Z","body":"Debug mode show the real reason of the error.\r\n```shellsession\r\n$ svg-sprite --css --dest=out *.svg --log=debug                                                                                             8 ↵\r\n2015-03-12 20:41:18 - debug: Started logging\r\n2015-03-12 20:41:18 - debug: Prepared general options\r\n2015-03-12 20:41:18 - debug: Prepared `shape` options\r\n2015-03-12 20:41:18 - debug: Prepared `svg` options\r\n2015-03-12 20:41:18 - debug: Prepared `transform` options\r\n2015-03-12 20:41:18 - debug: Prepared `mode` options\r\n2015-03-12 20:41:18 - debug: Prepared `variables` options\r\n2015-03-12 20:41:18 - verbose: Initialized spriter configuration\r\n2015-03-12 20:41:18 - debug: Created processing queue instance\r\n2015-03-12 20:41:18 - info: Created spriter instance\r\n2015-03-12 20:41:18 - debug: Added \"facebook.svg\" to processing queue\r\n2015-03-12 20:41:18 - verbose: Added shape \"facebook:regular\"\r\n2015-03-12 20:41:18 - debug: Added \"google.svg\" to processing queue\r\n2015-03-12 20:41:18 - verbose: Added shape \"google:regular\"\r\n2015-03-12 20:41:18 - debug: Added \"twitter.svg\" to processing queue\r\n2015-03-12 20:41:18 - verbose: Added shape \"twitter:regular\"\r\n2015-03-12 20:41:18 - debug: Optimized \"facebook.svg\" with SVGO (saved 206 Bytes / 22%)\r\n2015-03-12 20:41:18 - error: Optimizing \"google.svg\" with SVGO failed with error \"%s\" TypeError: Cannot read property 'content' of undefined\r\n    at Object.exports.fn (/usr/local/lib/node_modules/svg-sprite/node_modules/svgo/plugins/removeUnknownsAndDefaults.js:83:24)\r\n    at /usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/plugins.js:61:45\r\n    at Array.filter (native)\r\n    at monkeys (/usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/plugins.js:46:39)\r\n    at perItem (/usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/plugins.js:81:12)\r\n    at /usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/plugins.js:18:24\r\n    at Array.forEach (native)\r\n    at module.exports (/usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/plugins.js:14:13)\r\n    at /usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo.js:43:21\r\n    at Object.sax.onend (/usr/local/lib/node_modules/svg-sprite/node_modules/svgo/lib/svgo/svg2js.js:127:9)\r\n\r\n/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/queue.js:90\r\n\tArray.prototype.push.apply(this._spriter._shapes, shape.distribute());\r\n\t                                                        ^\r\nTypeError: Cannot call method 'distribute' of undefined\r\n    at EventEmitter.SVGSpriterQueue.remove (/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/queue.js:90:58)\r\n    at /usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:544:30\r\n    at /usr/local/lib/node_modules/svg-sprite/lib/svg-sprite.js:184:3\r\n    at Object.module.exports [as svgo] (/usr/local/lib/node_modules/svg-sprite/lib/svg-sprite/transform/svgo.js:80:3)\r\n    at /usr/local/lib/node_modules/svg-sprite/lib/svg-sprite.js:168:38\r\n    at fn (/usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:641:34)\r\n    at Object._onImmediate (/usr/local/lib/node_modules/svg-sprite/node_modules/async/lib/async.js:557:34)\r\n    at processImmediate [as _immediateCallback] (timers.js:354:15)\r\n```\r\n\r\nI just deleted `google.svg` and it works now.\r\nI can upload this svg file for further understanding the roots of the error."}}