{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/2946","labels_url":"https://api.github.com/repos/select2/select2/issues/2946/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/2946/comments","events_url":"https://api.github.com/repos/select2/select2/issues/2946/events","html_url":"https://github.com/select2/select2/issues/2946","id":54768941,"number":2946,"title":"Using select2.amd.js causes \"Uncaught Error...\"","user":{"login":"mateuszf","id":3430331,"avatar_url":"https://avatars.githubusercontent.com/u/3430331?v=3","gravatar_id":"","url":"https://api.github.com/users/mateuszf","html_url":"https://github.com/mateuszf","followers_url":"https://api.github.com/users/mateuszf/followers","following_url":"https://api.github.com/users/mateuszf/following{/other_user}","gists_url":"https://api.github.com/users/mateuszf/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszf/subscriptions","organizations_url":"https://api.github.com/users/mateuszf/orgs","repos_url":"https://api.github.com/users/mateuszf/repos","events_url":"https://api.github.com/users/mateuszf/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/select2/select2/milestones/5","labels_url":"https://api.github.com/repos/select2/select2/milestones/5/labels","id":152312,"number":5,"title":"4.0","description":"This will be a complete rebuild of Select2, from the ground up.\r\n\r\n**Alpha** The Select2 4.0-alpha.1 release should be done by December 15th, 2014.\r\n\r\n**Beta:** The Select2 4.0-beta.1 release should be done by January 7th, 2014.","creator":{"login":"ivaynberg","id":150030,"avatar_url":"https://avatars.githubusercontent.com/u/150030?v=3","gravatar_id":"","url":"https://api.github.com/users/ivaynberg","html_url":"https://github.com/ivaynberg","followers_url":"https://api.github.com/users/ivaynberg/followers","following_url":"https://api.github.com/users/ivaynberg/following{/other_user}","gists_url":"https://api.github.com/users/ivaynberg/gists{/gist_id}","starred_url":"https://api.github.com/users/ivaynberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivaynberg/subscriptions","organizations_url":"https://api.github.com/users/ivaynberg/orgs","repos_url":"https://api.github.com/users/ivaynberg/repos","events_url":"https://api.github.com/users/ivaynberg/events{/privacy}","received_events_url":"https://api.github.com/users/ivaynberg/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":43,"state":"open","created_at":"2012-07-26T15:56:40Z","updated_at":"2015-01-20T17:37:39Z","due_on":"2015-01-31T05:00:00Z","closed_at":null},"comments":1,"created_at":"2015-01-19T14:16:24Z","updated_at":"2015-01-21T06:21:48Z","closed_at":null,"body":"ver. select2-4.0.0-beta.2\r\n\r\nI'm trying to use select2 with requirejs.\r\nI figured out that if I want to use pre-built version I need to use \"select2.amd.js\". It defines \"jquery.select2\" module so I changed name of the file to match name of the module and included it in my sources.\r\n\r\nIt loads, but I'm getting:\r\nUncaught Error: Module name \"jquery.select2\" has not been loaded yet for context: _. Use require([])\r\n\r\nVersion from the \"src\" subdirectory loads without problems."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/70790048","html_url":"https://github.com/select2/select2/issues/2946#issuecomment-70790048","issue_url":"https://api.github.com/repos/select2/select2/issues/2946","id":70790048,"user":{"login":"CTAPbIuMABP","id":185285,"avatar_url":"https://avatars.githubusercontent.com/u/185285?v=3","gravatar_id":"","url":"https://api.github.com/users/CTAPbIuMABP","html_url":"https://github.com/CTAPbIuMABP","followers_url":"https://api.github.com/users/CTAPbIuMABP/followers","following_url":"https://api.github.com/users/CTAPbIuMABP/following{/other_user}","gists_url":"https://api.github.com/users/CTAPbIuMABP/gists{/gist_id}","starred_url":"https://api.github.com/users/CTAPbIuMABP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTAPbIuMABP/subscriptions","organizations_url":"https://api.github.com/users/CTAPbIuMABP/orgs","repos_url":"https://api.github.com/users/CTAPbIuMABP/repos","events_url":"https://api.github.com/users/CTAPbIuMABP/events{/privacy}","received_events_url":"https://api.github.com/users/CTAPbIuMABP/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T06:21:48Z","updated_at":"2015-01-21T06:21:48Z","body":"+1"}}