{"action":"created","issue":{"url":"https://api.github.com/repos/koistya/gulp-render/issues/8","labels_url":"https://api.github.com/repos/koistya/gulp-render/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/koistya/gulp-render/issues/8/comments","events_url":"https://api.github.com/repos/koistya/gulp-render/issues/8/events","html_url":"https://github.com/koistya/gulp-render/issues/8","id":53952826,"number":8,"title":"ReferenceError: window is not defined when requiring certain 3rd party libs","user":{"login":"yemi","id":416424,"avatar_url":"https://avatars.githubusercontent.com/u/416424?v=3","gravatar_id":"","url":"https://api.github.com/users/yemi","html_url":"https://github.com/yemi","followers_url":"https://api.github.com/users/yemi/followers","following_url":"https://api.github.com/users/yemi/following{/other_user}","gists_url":"https://api.github.com/users/yemi/gists{/gist_id}","starred_url":"https://api.github.com/users/yemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yemi/subscriptions","organizations_url":"https://api.github.com/users/yemi/orgs","repos_url":"https://api.github.com/users/yemi/repos","events_url":"https://api.github.com/users/yemi/events{/privacy}","received_events_url":"https://api.github.com/users/yemi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-10T09:42:50Z","updated_at":"2015-01-11T22:24:54Z","closed_at":null,"body":"I get the `ReferenceError: window is not defined` when requiring certain libs that make use of the `window` object. \r\n\r\nHeres the full stack trace:\r\n\r\n```javascript\r\n\r\nReferenceError: window is not defined\r\n    at <path-to-project>/node_modules/chartist/dist/chartist.js:715:5\r\n    at Chartist.version (<path-to-project>/node_modules/chartist/dist/chartist.js:11:22)\r\n    at Object.<anonymous> (<path-to-project>/node_modules/chartist/dist/chartist.js:15:2)\r\n    at Module._compile (module.js:456:26)\r\n    at Module._extensions..js (module.js:474:10)\r\n    at reactTransform (<path-to-project>/gulpfile.js:58:5)\r\n    at Object.Plugin.reactTransform (<path-to-project>/node_modules/gulp-render/index.js:80:7)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n```\r\n\r\nIs there any workaround for this?\r\n\r\nBtw Im using your react starterkit https://github.com/kriasoft/react-starter-kit"},"comment":{"url":"https://api.github.com/repos/koistya/gulp-render/issues/comments/69514855","html_url":"https://github.com/koistya/gulp-render/issues/8#issuecomment-69514855","issue_url":"https://api.github.com/repos/koistya/gulp-render/issues/8","id":69514855,"user":{"login":"koistya","id":197134,"avatar_url":"https://avatars.githubusercontent.com/u/197134?v=3","gravatar_id":"","url":"https://api.github.com/users/koistya","html_url":"https://github.com/koistya","followers_url":"https://api.github.com/users/koistya/followers","following_url":"https://api.github.com/users/koistya/following{/other_user}","gists_url":"https://api.github.com/users/koistya/gists{/gist_id}","starred_url":"https://api.github.com/users/koistya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koistya/subscriptions","organizations_url":"https://api.github.com/users/koistya/orgs","repos_url":"https://api.github.com/users/koistya/repos","events_url":"https://api.github.com/users/koistya/events{/privacy}","received_events_url":"https://api.github.com/users/koistya/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T22:24:54Z","updated_at":"2015-01-11T22:24:54Z","body":"@yemi I think it may only be useful if you want to precompile your React-based website for hosting in CDN (e.g. GitHub Pages)."}}