{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/lock/issues/111","repository_url":"https://api.github.com/repos/auth0/lock","labels_url":"https://api.github.com/repos/auth0/lock/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/auth0/lock/issues/111/comments","events_url":"https://api.github.com/repos/auth0/lock/issues/111/events","html_url":"https://github.com/auth0/lock/issues/111","id":55816386,"number":111,"title":"Uncaught Error: Cannot find module 'undefined' in auth0-lock's standalone.js file","user":{"login":"chelzwa","id":10090103,"avatar_url":"https://avatars.githubusercontent.com/u/10090103?v=3","gravatar_id":"","url":"https://api.github.com/users/chelzwa","html_url":"https://github.com/chelzwa","followers_url":"https://api.github.com/users/chelzwa/followers","following_url":"https://api.github.com/users/chelzwa/following{/other_user}","gists_url":"https://api.github.com/users/chelzwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chelzwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chelzwa/subscriptions","organizations_url":"https://api.github.com/users/chelzwa/orgs","repos_url":"https://api.github.com/users/chelzwa/repos","events_url":"https://api.github.com/users/chelzwa/events{/privacy}","received_events_url":"https://api.github.com/users/chelzwa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-01-28T21:13:41Z","updated_at":"2016-04-18T18:51:57Z","closed_at":"2015-01-30T21:04:05Z","body":"Our site is working fine when it's served locally by gulp, but fails with an \"Uncaught Error: Cannot find module 'undefined'' on line 17 (the last line) of auth0-lock's standalone.js file when we build and serve the concatenated version.\r\n\r\nHere's the file:\r\n```\r\n/*\r\n *\r\n * This is used to build the bundle with browserify.\r\n *\r\n * The bundle is used by people who doesn't use browserify.require\r\n * Those who use browserify will install with npm and require the module,\r\n * the package.json file points to index.js.\r\n */\r\nvar Auth0Lock = require('./');\r\n\r\n// use amd or just throught to window object.\r\nif (typeof global.window.define == 'function' && global.window.define.amd) {\r\n  global.window.define('auth0-lock', function () { return Auth0Lock; });\r\n} else if (global.window) {\r\n  global.window.Auth0Lock = Auth0Lock;\r\n}\r\n```\r\n\r\nLet me know if there's any more information I can provide which would be helpful."},"comment":{"url":"https://api.github.com/repos/auth0/lock/issues/comments/211525056","html_url":"https://github.com/auth0/lock/issues/111#issuecomment-211525056","issue_url":"https://api.github.com/repos/auth0/lock/issues/111","id":211525056,"user":{"login":"matiishyn","id":3661065,"avatar_url":"https://avatars.githubusercontent.com/u/3661065?v=3","gravatar_id":"","url":"https://api.github.com/users/matiishyn","html_url":"https://github.com/matiishyn","followers_url":"https://api.github.com/users/matiishyn/followers","following_url":"https://api.github.com/users/matiishyn/following{/other_user}","gists_url":"https://api.github.com/users/matiishyn/gists{/gist_id}","starred_url":"https://api.github.com/users/matiishyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiishyn/subscriptions","organizations_url":"https://api.github.com/users/matiishyn/orgs","repos_url":"https://api.github.com/users/matiishyn/repos","events_url":"https://api.github.com/users/matiishyn/events{/privacy}","received_events_url":"https://api.github.com/users/matiishyn/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T18:51:57Z","updated_at":"2016-04-18T18:51:57Z","body":"what a silly issue. I spent so much time to find out at least what was happening"}}