{"action":"created","issue":{"url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/162","repository_url":"https://api.github.com/repos/TAPevents/tap-i18n","labels_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/162/comments","events_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/162/events","html_url":"https://github.com/TAPevents/tap-i18n/issues/162","id":149032780,"number":162,"title":"Meteor 1.3.1 - 'meteor test' with server TAPi18n.__() call fails with \"TypeError: Object [object Object] has no method 'en'\"","user":{"login":"waitem","id":1995882,"avatar_url":"https://avatars.githubusercontent.com/u/1995882?v=3","gravatar_id":"","url":"https://api.github.com/users/waitem","html_url":"https://github.com/waitem","followers_url":"https://api.github.com/users/waitem/followers","following_url":"https://api.github.com/users/waitem/following{/other_user}","gists_url":"https://api.github.com/users/waitem/gists{/gist_id}","starred_url":"https://api.github.com/users/waitem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waitem/subscriptions","organizations_url":"https://api.github.com/users/waitem/orgs","repos_url":"https://api.github.com/users/waitem/repos","events_url":"https://api.github.com/users/waitem/events{/privacy}","received_events_url":"https://api.github.com/users/waitem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T03:49:10Z","updated_at":"2016-04-20T10:17:23Z","closed_at":null,"body":"I am working on a Meteor 1.3.1 project, and use `meteor test` for my unit testing.\r\n\r\nI just added the tap:i18n package, but unfortunately in doing so, it causes `meteor test` to crash if I use the TAPi18n.__() method on the **server**. The stack trace is shown below.\r\n\r\nTo reproduce the problem, please see the following repository: [https://waitem@bitbucket.org/waitem/meteor-i18n-testing-issue.git](https://waitem@bitbucket.org/waitem/meteor-i18n-testing-issue.git)\r\n\r\nIn particular, the line that triggers the problem during testing is in `server/main.js`: \r\n\r\n`let appName = TAPi18n.__('app.name');`\r\n\r\n`meteor run` works fine, and the translated app name is printed to the server console.\r\n\r\nHowever, `meteor test` fails with the following stack trace: \r\n\r\n    TypeError: Object [object Object] has no method 'en'\r\n    W20160418-13:36:34.935(10)? (STDERR)     at [object Object].__ (packages/tap_i18n/lib/tap_i18n/tap_i18n-server.coffee:26:16)\r\n    W20160418-13:36:34.935(10)? (STDERR)     at myServerFunc (server/main.js:6:27)\r\n    W20160418-13:36:34.935(10)? (STDERR)     at server/main.js:14:5\r\n    W20160418-13:36:34.935(10)? (STDERR)     at /tmp/meteor-test-runkihh1b/.meteor/local/build/programs/server/boot.js:290:5\r\n"},"comment":{"url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/comments/212366814","html_url":"https://github.com/TAPevents/tap-i18n/issues/162#issuecomment-212366814","issue_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/162","id":212366814,"user":{"login":"waitem","id":1995882,"avatar_url":"https://avatars.githubusercontent.com/u/1995882?v=3","gravatar_id":"","url":"https://api.github.com/users/waitem","html_url":"https://github.com/waitem","followers_url":"https://api.github.com/users/waitem/followers","following_url":"https://api.github.com/users/waitem/following{/other_user}","gists_url":"https://api.github.com/users/waitem/gists{/gist_id}","starred_url":"https://api.github.com/users/waitem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waitem/subscriptions","organizations_url":"https://api.github.com/users/waitem/orgs","repos_url":"https://api.github.com/users/waitem/repos","events_url":"https://api.github.com/users/waitem/events{/privacy}","received_events_url":"https://api.github.com/users/waitem/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T10:17:23Z","updated_at":"2016-04-20T10:17:23Z","body":"Unfortunately this is still an issue after upgrading to meteor 1.3.2.2"}}