{"action":"created","issue":{"url":"https://api.github.com/repos/substack/factor-bundle/issues/61","labels_url":"https://api.github.com/repos/substack/factor-bundle/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/substack/factor-bundle/issues/61/comments","events_url":"https://api.github.com/repos/substack/factor-bundle/issues/61/events","html_url":"https://github.com/substack/factor-bundle/issues/61","id":60181834,"number":61,"title":"Issue with broken dep","user":{"login":"RichardLitt","id":910753,"avatar_url":"https://avatars.githubusercontent.com/u/910753?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardLitt","html_url":"https://github.com/RichardLitt","followers_url":"https://api.github.com/users/RichardLitt/followers","following_url":"https://api.github.com/users/RichardLitt/following{/other_user}","gists_url":"https://api.github.com/users/RichardLitt/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardLitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardLitt/subscriptions","organizations_url":"https://api.github.com/users/RichardLitt/orgs","repos_url":"https://api.github.com/users/RichardLitt/repos","events_url":"https://api.github.com/users/RichardLitt/events{/privacy}","received_events_url":"https://api.github.com/users/RichardLitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-07T01:08:27Z","updated_at":"2015-03-25T07:05:37Z","closed_at":null,"body":"I am using browserify with brfs in a Chrome extension. My gulpfile looks like this:\r\n\r\n```js\r\ngulp.task('browserify', function() {\r\n  return browserify(paths.main)\r\n    .transform(reactify)\r\n    .transform({global: true }, 'brfs')\r\n    .plugin('factor-bundle', {outputs: ['build/main.min.js', 'build/background.min.js']})\r\n    .bundle()\r\n    .pipe(source('common.min.js'))\r\n    .pipe(gulp.dest('build/'))\r\n})\r\n``` \r\nIn the bundle loaded into the Chrome extension, I have a `viewer.html` page, into which I have plopped:\r\n\r\n```html\r\n<script defer src=\"../../common.min.js\"></script>\r\n<script defer src=\"../../main.min.js\"></script>\r\n```\r\n\r\nIn place of the previously working `bundle.min.js`. Now, however, on load, `main.min.js` no longer works, throwing a `Uncaught TypeError: Cannot read property '0' of undefined` error. The line it points to looks like this:\r\n\r\n```js\r\n{\"react/lib/ExecutionEnvironment\":682,\"react/lib/invariant\":788}],280:[function(require,module,exports){\r\narguments[4][278][0].apply(exports,arguments)\r\n},\r\n``` \r\n\r\nI'm afraid I have no idea why this is happening, at all, to the point of not knowing how to even name this issue. I'm going to go back to not using factor-bundle for now. I'll have keep this issue in a branch, but I'm stumped. "},"comment":{"url":"https://api.github.com/repos/substack/factor-bundle/issues/comments/85886362","html_url":"https://github.com/substack/factor-bundle/issues/61#issuecomment-85886362","issue_url":"https://api.github.com/repos/substack/factor-bundle/issues/61","id":85886362,"user":{"login":"RichardLitt","id":910753,"avatar_url":"https://avatars.githubusercontent.com/u/910753?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardLitt","html_url":"https://github.com/RichardLitt","followers_url":"https://api.github.com/users/RichardLitt/followers","following_url":"https://api.github.com/users/RichardLitt/following{/other_user}","gists_url":"https://api.github.com/users/RichardLitt/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardLitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardLitt/subscriptions","organizations_url":"https://api.github.com/users/RichardLitt/orgs","repos_url":"https://api.github.com/users/RichardLitt/repos","events_url":"https://api.github.com/users/RichardLitt/events{/privacy}","received_events_url":"https://api.github.com/users/RichardLitt/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T07:05:37Z","updated_at":"2015-03-25T07:05:37Z","body":"Ahh. Can you help me by showing your solution? "}}