{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/116","repository_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js","labels_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/116/comments","events_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/116/events","html_url":"https://github.com/aws/amazon-cognito-identity-js/issues/116","id":172293039,"number":116,"title":"Error: CognitoUserPool is not a constructor","user":{"login":"cmoel","id":272904,"avatar_url":"https://avatars.githubusercontent.com/u/272904?v=3","gravatar_id":"","url":"https://api.github.com/users/cmoel","html_url":"https://github.com/cmoel","followers_url":"https://api.github.com/users/cmoel/followers","following_url":"https://api.github.com/users/cmoel/following{/other_user}","gists_url":"https://api.github.com/users/cmoel/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoel/subscriptions","organizations_url":"https://api.github.com/users/cmoel/orgs","repos_url":"https://api.github.com/users/cmoel/repos","events_url":"https://api.github.com/users/cmoel/events{/privacy}","received_events_url":"https://api.github.com/users/cmoel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-20T22:00:38Z","updated_at":"2016-08-21T22:52:02Z","closed_at":"2016-08-21T22:49:16Z","body":"Hi folks\r\n\r\nI'm running into an issue when following Use Case 1 from the Usage section of the README:\r\nhttps://github.com/aws/amazon-cognito-identity-js#usage. I installed the library into my project with a specific SHA because I'm trying to use it with Webpack:\r\n```\r\nnpm install --save github:aws/amazon-cognito-identity-js#c82b936991d4e8aedf02302817f4f21428d246cc\r\n```\r\n\r\nI was successfully able to get `AWSCognito` as a global variable in my project after updating my Webpack config with the instructions I found here: https://github.com/aws/amazon-cognito-identity-js/issues/48#issuecomment-235423796.\r\n\r\nThe problem I'm experiencing is with this code (using a real `UserPoolId` and real `ClientId`):\r\n```javascript\r\nAWSCognito.config.region = 'us-east-1'\r\nvar poolData = {\r\n  UserPoolId: '<my-pool-id>',\r\n  ClientId: '<my-client-id>',\r\n}\r\nvar userPool = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData)\r\n```\r\n\r\nI get this error in the console:\r\n```\r\nUncaught TypeError: AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool is not a constructor\r\n```\r\n\r\nWhat am I doing wrong?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/comments/241287442","html_url":"https://github.com/aws/amazon-cognito-identity-js/issues/116#issuecomment-241287442","issue_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/116","id":241287442,"user":{"login":"simonbuchan","id":1840547,"avatar_url":"https://avatars.githubusercontent.com/u/1840547?v=3","gravatar_id":"","url":"https://api.github.com/users/simonbuchan","html_url":"https://github.com/simonbuchan","followers_url":"https://api.github.com/users/simonbuchan/followers","following_url":"https://api.github.com/users/simonbuchan/following{/other_user}","gists_url":"https://api.github.com/users/simonbuchan/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbuchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbuchan/subscriptions","organizations_url":"https://api.github.com/users/simonbuchan/orgs","repos_url":"https://api.github.com/users/simonbuchan/repos","events_url":"https://api.github.com/users/simonbuchan/events{/privacy}","received_events_url":"https://api.github.com/users/simonbuchan/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T22:52:02Z","updated_at":"2016-08-21T22:52:02Z","body":"@cmoel I'll ping this issue when I put up the PR so you can take a look and see if I missed anything?"}}
{"actor":{"display_login":"simonbuchan"}}