{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2831","repository_url":"https://api.github.com/repos/moment/moment","labels_url":"https://api.github.com/repos/moment/moment/issues/2831/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2831/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2831/events","html_url":"https://github.com/moment/moment/issues/2831","id":123604562,"number":2831,"title":"Moment no longer exporting global when require.js is present","user":{"login":"jimsimon-cengage","id":8547326,"avatar_url":"https://avatars.githubusercontent.com/u/8547326?v=3","gravatar_id":"","url":"https://api.github.com/users/jimsimon-cengage","html_url":"https://github.com/jimsimon-cengage","followers_url":"https://api.github.com/users/jimsimon-cengage/followers","following_url":"https://api.github.com/users/jimsimon-cengage/following{/other_user}","gists_url":"https://api.github.com/users/jimsimon-cengage/gists{/gist_id}","starred_url":"https://api.github.com/users/jimsimon-cengage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimsimon-cengage/subscriptions","organizations_url":"https://api.github.com/users/jimsimon-cengage/orgs","repos_url":"https://api.github.com/users/jimsimon-cengage/repos","events_url":"https://api.github.com/users/jimsimon-cengage/events{/privacy}","received_events_url":"https://api.github.com/users/jimsimon-cengage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moment/moment/labels/Help%20Wanted","name":"Help Wanted","color":"fef2c0"},{"url":"https://api.github.com/repos/moment/moment/labels/Loading","name":"Loading","color":"fef2c0"},{"url":"https://api.github.com/repos/moment/moment/labels/Troubleshooting","name":"Troubleshooting","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-23T05:35:05Z","updated_at":"2016-06-16T11:24:23Z","closed_at":"2016-06-16T11:24:22Z","body":"As of version 2.10.0, the moment global is no longer available if a module system is detected.  This was previously working in 2.9.0.  This is causing a headache for us as we have newer code written with Polymer that is HTML Importing moment, and we're integrating it with older code written with require.js.  Moment detects require.js and doesn't add the global, which causes our elements to fail at runtime.  Our tests and demo pages still work because they do not have require.js present, and the Polymer elements themselves don't need require.js to function.\r\n\r\nFiddle is below, but please note that it appears to be freezing for a short period before dumping out to the console.  You'll ultimately get \"moment is not defined\" error and a \"Mismatched anonymous define() module\" error from require.js.\r\nFiddle: https://jsfiddle.net/f5xu1cho/1/"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/226458269","html_url":"https://github.com/moment/moment/issues/2831#issuecomment-226458269","issue_url":"https://api.github.com/repos/moment/moment/issues/2831","id":226458269,"user":{"login":"maggiepint","id":6054610,"avatar_url":"https://avatars.githubusercontent.com/u/6054610?v=3","gravatar_id":"","url":"https://api.github.com/users/maggiepint","html_url":"https://github.com/maggiepint","followers_url":"https://api.github.com/users/maggiepint/followers","following_url":"https://api.github.com/users/maggiepint/following{/other_user}","gists_url":"https://api.github.com/users/maggiepint/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiepint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiepint/subscriptions","organizations_url":"https://api.github.com/users/maggiepint/orgs","repos_url":"https://api.github.com/users/maggiepint/repos","events_url":"https://api.github.com/users/maggiepint/events{/privacy}","received_events_url":"https://api.github.com/users/maggiepint/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T11:24:22Z","updated_at":"2016-06-16T11:24:22Z","body":"The require team kindly explained what to do in this situation with requirejs/requirejs#1554 so I'm closing this. "}}
{"actor":{"display_login":"maggiepint"}}