{"action":"created","issue":{"url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/421","repository_url":"https://api.github.com/repos/parse-community/Parse-SDK-JS","labels_url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/421/comments","events_url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/421/events","html_url":"https://github.com/parse-community/Parse-SDK-JS/issues/421","id":219441619,"number":421,"title":"Parse JS SDK and RequireJS or Webpack","user":{"login":"camdagr8","id":66254,"avatar_url":"https://avatars2.githubusercontent.com/u/66254?v=3","gravatar_id":"","url":"https://api.github.com/users/camdagr8","html_url":"https://github.com/camdagr8","followers_url":"https://api.github.com/users/camdagr8/followers","following_url":"https://api.github.com/users/camdagr8/following{/other_user}","gists_url":"https://api.github.com/users/camdagr8/gists{/gist_id}","starred_url":"https://api.github.com/users/camdagr8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camdagr8/subscriptions","organizations_url":"https://api.github.com/users/camdagr8/orgs","repos_url":"https://api.github.com/users/camdagr8/repos","events_url":"https://api.github.com/users/camdagr8/events{/privacy}","received_events_url":"https://api.github.com/users/camdagr8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-05T01:56:18Z","updated_at":"2017-06-22T13:25:29Z","closed_at":null,"body":"I'm trying to include the Parse Javascript SDK (1.9.2) via npm (https://www.npmjs.com/package/parse) and I keep getting the following error in the browser:\r\n\r\n```\r\nUncaught ReferenceError: require is not defined\r\n    at Object.<anonymous> (external \"events\":1)\r\n    at __webpack_require__ (bootstrap 8ca8db8…:19)\r\n    at Object.root (EventEmitter.js:14)\r\n    at __webpack_require__ (bootstrap 8ca8db8…:19)\r\n    at Object.defineProperty.value (ParseLiveQuery.js:7)\r\n    at __webpack_require__ (bootstrap 8ca8db8…:19)\r\n    at Object.defineProperty.value (Parse.js:152)\r\n    at __webpack_require__ (bootstrap 8ca8db8…:19)\r\n    at Object.defineProperty.value (index.js:1)\r\n    at __webpack_require__ (bootstrap 8ca8db8…:19)\r\n```\r\n\r\n## Things I've Looked at:\r\n\r\n- I have other packages being included via require() and they are working fine. \r\n- I insured that the package is being installed when I run `npm install parse --save`\r\n- If I load the SDK from CDN (https://cdnjs.cloudflare.com/ajax/libs/parse/1.9.2/parse.min.js) it works fine. \r\n\r\n## So..\r\nCan someone point me in the right direction as to what could be causing this error? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/comments/310379177","html_url":"https://github.com/parse-community/Parse-SDK-JS/issues/421#issuecomment-310379177","issue_url":"https://api.github.com/repos/parse-community/Parse-SDK-JS/issues/421","id":310379177,"user":{"login":"ChrisGrant","id":2364670,"avatar_url":"https://avatars0.githubusercontent.com/u/2364670?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisGrant","html_url":"https://github.com/ChrisGrant","followers_url":"https://api.github.com/users/ChrisGrant/followers","following_url":"https://api.github.com/users/ChrisGrant/following{/other_user}","gists_url":"https://api.github.com/users/ChrisGrant/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisGrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisGrant/subscriptions","organizations_url":"https://api.github.com/users/ChrisGrant/orgs","repos_url":"https://api.github.com/users/ChrisGrant/repos","events_url":"https://api.github.com/users/ChrisGrant/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisGrant/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T13:25:29Z","updated_at":"2017-06-22T13:25:29Z","body":"@camdagr8 I'm having the exact same issue. Did you manage to fix this or work around it somehow?"}}
{"actor":{"display_login":"ChrisGrant"}}