{"action":"opened","issue":{"url":"https://api.github.com/repos/stealjs/steal/issues/621","repository_url":"https://api.github.com/repos/stealjs/steal","labels_url":"https://api.github.com/repos/stealjs/steal/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/stealjs/steal/issues/621/comments","events_url":"https://api.github.com/repos/stealjs/steal/issues/621/events","html_url":"https://github.com/stealjs/steal/issues/621","id":139608075,"number":621,"title":"'live-reload' as configDependency breaks generated plugin build","user":{"login":"nlundquist","id":2623867,"avatar_url":"https://avatars.githubusercontent.com/u/2623867?v=3","gravatar_id":"","url":"https://api.github.com/users/nlundquist","html_url":"https://github.com/nlundquist","followers_url":"https://api.github.com/users/nlundquist/followers","following_url":"https://api.github.com/users/nlundquist/following{/other_user}","gists_url":"https://api.github.com/users/nlundquist/gists{/gist_id}","starred_url":"https://api.github.com/users/nlundquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlundquist/subscriptions","organizations_url":"https://api.github.com/users/nlundquist/orgs","repos_url":"https://api.github.com/users/nlundquist/repos","events_url":"https://api.github.com/users/nlundquist/events{/privacy}","received_events_url":"https://api.github.com/users/nlundquist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-09T15:27:21Z","updated_at":"2016-03-09T15:27:21Z","closed_at":null,"body":"Using the newest version of donejs, generate a plugin:\r\n`donejs init --type plugin` \r\n\r\nOnce that is complete (answers to prompts unimportant) try to build the plugin:\r\n`donejs build`\r\n\r\nThis will fail with the error:\r\n```shell\r\nNilss-MBP:new-plugin nlundqu$ npm run build\r\n\r\n> new-plugin@0.0.0 build /Users/nlundqu/Repos/new-plugin\r\n> node build.js\r\n\r\nOPENING: /Users/nlundqu/Repos/new-plugin/package.json!npm\r\nOUTPUT: +cjs\r\nOUTPUT: +amd\r\nOUTPUT: +global-js\r\n> /Users/nlundqu/Repos/new-plugin/dist/cjs/new-plugin.js\r\n> /Users/nlundqu/Repos/new-plugin/dist/amd/new-plugin.js\r\n> /Users/nlundqu/Repos/new-plugin/dist/global/new-plugin.js\r\nPotentially unhandled rejection [1] ReferenceError: window is not defined\r\n    at setup (file:/Users/nlundqu/Repos/new-plugin/node_modules/steal/ext/live-reload.js:243:38)\r\n    at tryCatchReject (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:1183:30)\r\n    at runContinuation1 (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:1142:4)\r\n    at Fulfilled.when (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:930:4)\r\n    at Pending.run (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:821:13)\r\n    at Scheduler._drain (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:97:19)\r\n    at Scheduler.drain (/Users/nlundqu/Repos/new-plugin/node_modules/steal/node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js:62:9)\r\n    at nextTickCallbackWith0Args (node.js:453:9)\r\n    at process._tickCallback (node.js:382:13)\r\n```\r\n\r\nThis can be worked around by removing the 'live-reload' configDependency from the system config in package.json.\r\n\r\nHowever, the unfortunate fact remains that the released generator is creating plugins that can't be built."}}