{"action":"created","issue":{"url":"https://api.github.com/repos/rzymek/meteor-moment/issues/4","labels_url":"https://api.github.com/repos/rzymek/meteor-moment/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rzymek/meteor-moment/issues/4/comments","events_url":"https://api.github.com/repos/rzymek/meteor-moment/issues/4/events","html_url":"https://github.com/rzymek/meteor-moment/issues/4","id":63965080,"number":4,"title":"Random error","user":{"login":"ernestorocha","id":36022,"avatar_url":"https://avatars.githubusercontent.com/u/36022?v=3","gravatar_id":"","url":"https://api.github.com/users/ernestorocha","html_url":"https://github.com/ernestorocha","followers_url":"https://api.github.com/users/ernestorocha/followers","following_url":"https://api.github.com/users/ernestorocha/following{/other_user}","gists_url":"https://api.github.com/users/ernestorocha/gists{/gist_id}","starred_url":"https://api.github.com/users/ernestorocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernestorocha/subscriptions","organizations_url":"https://api.github.com/users/ernestorocha/orgs","repos_url":"https://api.github.com/users/ernestorocha/repos","events_url":"https://api.github.com/users/ernestorocha/events{/privacy}","received_events_url":"https://api.github.com/users/ernestorocha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T10:42:38Z","updated_at":"2015-03-24T16:14:39Z","closed_at":null,"body":"I'm now seeing this error, sometimes happens when server is reloading due changes in development:\r\n\r\n```\r\nW20150324-07:24:52.640(-3)? (STDERR) TypeError: Cannot call method 'defineLocale' of undefined\r\nW20150324-07:24:52.640(-3)? (STDERR)     at Package (packages/rzymek:moment-locale-de/locale.js:29:1)\r\nW20150324-07:24:52.640(-3)? (STDERR)     at format.m (packages/rzymek:moment-locale-de/locale.js:12:1)\r\n```\r\n\r\nThe problem seems to be that `moment` is not being loaded before your package:\r\n```\r\nreturn moment.defineLocale('de', {                                    // 29\r\n```\r\nAny idea ? This can be related to the fact that `moment` was updated to 2.9.0 ?"},"comment":{"url":"https://api.github.com/repos/rzymek/meteor-moment/issues/comments/85586141","html_url":"https://github.com/rzymek/meteor-moment/issues/4#issuecomment-85586141","issue_url":"https://api.github.com/repos/rzymek/meteor-moment/issues/4","id":85586141,"user":{"login":"ernestorocha","id":36022,"avatar_url":"https://avatars.githubusercontent.com/u/36022?v=3","gravatar_id":"","url":"https://api.github.com/users/ernestorocha","html_url":"https://github.com/ernestorocha","followers_url":"https://api.github.com/users/ernestorocha/followers","following_url":"https://api.github.com/users/ernestorocha/following{/other_user}","gists_url":"https://api.github.com/users/ernestorocha/gists{/gist_id}","starred_url":"https://api.github.com/users/ernestorocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernestorocha/subscriptions","organizations_url":"https://api.github.com/users/ernestorocha/orgs","repos_url":"https://api.github.com/users/ernestorocha/repos","events_url":"https://api.github.com/users/ernestorocha/events{/privacy}","received_events_url":"https://api.github.com/users/ernestorocha/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T16:14:39Z","updated_at":"2015-03-24T16:14:39Z","body":"Sure, here:\r\n\r\n```\r\naccounts-base@1.2.0\r\naccounts-oauth@1.1.4\r\naccounts-password@1.1.0\r\najduke:bootstrap-tokenfield@0.3.2\r\nalamont:chartjs@0.0.9\r\nalanning:roles@1.2.13\r\naldeed:autoform@4.2.2\r\naldeed:collection2@2.3.2\r\naldeed:simple-schema@1.3.1\r\naldeed:template-extension@3.1.1\r\nalethes:pages@1.7.2\r\nanti:i18n@0.4.3\r\nautoupdate@1.2.0\r\nbase64@1.0.3\r\nbinary-heap@1.0.3\r\nblaze@2.1.0\r\nblaze-tools@1.0.3\r\nboilerplate-generator@1.0.3\r\ncallback-hook@1.0.3\r\ncfs:access-point@0.1.45\r\ncfs:base-package@0.0.28\r\ncfs:collection@0.5.5\r\ncfs:collection-filters@0.2.4\r\ncfs:data-man@0.0.6\r\ncfs:file@0.1.16\r\ncfs:filesystem@0.1.2\r\ncfs:graphicsmagick@0.0.18\r\ncfs:http-methods@0.0.27\r\ncfs:http-publish@0.0.13\r\ncfs:power-queue@0.9.11\r\ncfs:reactive-list@0.0.9\r\ncfs:reactive-property@0.0.4\r\ncfs:s3@0.1.3\r\ncfs:standard-packages@0.5.5\r\ncfs:storage-adapter@0.2.1\r\ncfs:tempstore@0.1.4\r\ncfs:upload-http@0.0.20\r\ncfs:worker@0.1.4\r\ncheck@1.0.5\r\nchfritz:cryptojs-hmac-md5@0.1.0\r\nchuangbo:cookie@1.1.0\r\nclasscraft:imagemagick@0.9.1\r\ncmather:handlebars-server@2.0.0\r\ncoffeescript@1.0.6\r\ncopleykj:livestamp@1.1.6\r\nd3@1.0.0\r\ndandv:caret-position@2.1.0-3\r\ndburles:collection-helpers@1.0.2\r\nddp@1.1.0\r\ndeps@1.0.7\r\nejson@1.0.6\r\nemail@1.0.6\r\nfacebook@1.1.4\r\nfastclick@1.0.3\r\nflowkey:bootstrap-tour@1.0.0\r\nfourseven:scss@2.0.0-beta_1\r\ngeojson-utils@1.0.3\r\nhandlebars@1.0.3\r\nhtml-tools@1.0.4\r\nhtmljs@1.0.4\r\nhttp@1.1.0\r\nian:accounts-ui-bootstrap-3@1.2.37\r\nid-map@1.0.3\r\niron:controller@1.0.7\r\niron:core@1.0.7\r\niron:dynamic-template@1.0.7\r\niron:layout@1.0.7\r\niron:location@1.0.7\r\niron:middleware-stack@1.0.7\r\niron:router@1.0.7\r\niron:url@1.0.7\r\njquery@1.11.3_2\r\njson@1.0.3\r\nlaunch-screen@1.0.2\r\nless@1.0.13\r\nlivedata@1.0.13\r\nlocalstorage@1.0.3\r\nlogging@1.0.7\r\nmatb33:collection-hooks@0.7.11\r\nmatteodem:easy-search@1.4.13\r\nmatteodem:server-session@0.4.2\r\nmeteor@1.1.5\r\nmeteor-platform@1.2.2\r\nmeteorhacks:fast-render@2.3.1\r\nmeteorhacks:inject-data@1.2.2\r\nmeteorhacks:inject-initial@1.0.0\r\nmeteorhacks:kadira@2.20.1\r\nmeteorhacks:kadira-binary-deps@1.3.1\r\nmeteorhacks:kadira-profiler@1.0.2\r\nmeteorhacks:meteorx@1.3.1\r\nmeteorhacks:picker@1.0.1\r\nmeteorhacks:zones@1.4.0\r\nminifiers@1.1.4\r\nminimongo@1.0.7\r\nmizzao:autocomplete@0.5.1\r\nmobile-status-bar@1.0.3\r\nmomentjs:moment@2.9.0\r\nmonbro:mongodb-mapreduce-aggregation@1.0.1\r\nmongo@1.1.0\r\nmongo-livedata@1.0.8\r\nmrt:jquery-jcrop@0.0.3\r\nmrt:nprogress@0.1.0\r\nmrt:smart-publish@0.2.0\r\nnatestrauser:select2@3.5.1\r\nnatestrauser:x-editable-bootstrap@1.5.2_2\r\nnemo64:bootstrap@3.3.1_1\r\nnemo64:bootstrap-data@3.3.1_1\r\nnpm-bcrypt@0.7.8_1\r\noauth@1.1.4\r\noauth2@1.1.3\r\nobserve-sequence@1.0.5\r\nordered-dict@1.0.3\r\nraix:eventemitter@0.1.1\r\nraix:handlebar-helpers@0.2.4\r\nrandom@1.0.3\r\nreactive-dict@1.1.0\r\nreactive-var@1.0.5\r\nreload@1.1.3\r\nretry@1.0.3\r\nreywood:iron-router-ga@0.5.3\r\nreywood:publish-composite@1.3.5\r\nroutepolicy@1.0.5\r\nrzymek:moment-locale-de@2.8.4\r\nrzymek:moment-locale-pt-br@2.8.4\r\nsacha:spin@2.0.4\r\nsayawan:pickadate@3.3.1\r\nsergeyt:typeahead@0.10.5_13\r\nservice-configuration@1.0.4\r\nsession@1.1.0\r\nsha@1.0.3\r\nspacebars@1.0.6\r\nspacebars-compiler@1.0.5\r\nsrp@1.0.3\r\nstandard-app-packages@1.0.5\r\nstylus@1.0.7\r\ntemplating@1.1.0\r\ntracker@1.0.6\r\ntsega:bootstrap3-lightbox@0.2.0\r\nui@1.0.6\r\nunderscore@1.0.3\r\nurl@1.0.4\r\nvicentealencar:cordova-fb@1.1.9\r\nvsivsi:job-collection@1.0.0\r\nwebapp@1.2.0\r\nwebapp-hashing@1.0.3\r\nyogiben:admin@1.1.0\r\nyogiben:pretty-email@0.0.3\r\n```"}}