望远镜应用程序不断崩溃 - 流星

时间:2014-05-30 10:05:11

标签: javascript meteor meteorite

我是Meteor的新手,我试图让Telescope运行。我采取了以下步骤;

  • 安装Meteor
  • 安装Meteorite
  • 将Telescope下载或克隆到/ some / path
  • cd / some / path
  • 运行mrt

但是当我运行localhost时,我不断收到以下错误;

Your app is crashing. Here's the latest log. /Users/Thomas/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173
throw(ex);
^
ReferenceError: i18n is not defined
at app/Telescope/lib/locales/es.js:1:36
at app/Telescope/lib/locales/es.js:192:3
at /Users/Thomas/pcks_app/.meteor/local/build/programs/server/boot.js:155:10
at Array.forEach (native)
at Function._.each._.forEach (/Users/Thomas/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11)
at /Users/Thomas/pcks_app/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

有没有人可以指出我正确的方向?

非常感谢, 托马斯

1 个答案:

答案 0 :(得分:1)

错误表明未定义i18n。

正如您在此处所见:https://github.com/TelescopeJS/Telescope/tree/master/packages

i18ntelescope-i18n包公开的命名空间。这是package.js函数在api.export()文件中定义的:

Package.on_use(function (api) {
    api.use(['ui'], 'client');
    api.add_files(['i18n.js'], ['client', 'server']);
    api.export('i18n');
});

要检查的第一件事是包在包文件夹中;而且它没有被破坏。你应该从github repo下载它并替换你的确保。

可能出错的第二件事是.meteor/packages文件中缺少包。确保它包含所需的一切。这是回购的原件:

# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

backbone
accounts-base
accounts-ui
accounts-password
accounts-twitter
spiderable
email
crypto-md5
momentjs
standard-app-packages
rss
iron-router
mailchimp
telescope-i18n
fast-render
spin
autoform
collection2
accounts-facebook
iron-router-progress
telescope-tags

https://github.com/TelescopeJS/Telescope/blob/master/.meteor/packages