【问题标题】:Telescope app keeps crashing - meteor望远镜应用程序不断崩溃 - 流星
【发布时间】:2014-05-31 04:34:38
【问题描述】:

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

  • 安装 Meteor
  • 安装陨石
  • 将 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.

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

非常感谢, 托马斯

【问题讨论】:

  • 在启动应用之前尝试运行mrt update
  • 谢谢,不幸的是这并没有解决它。

标签: javascript meteor meteorite


【解决方案1】:

错误提示 i18n 未定义。

如您所见:https://github.com/TelescopeJS/Telescope/tree/master/packages

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

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)

【讨论】:

  • 感谢法比恩!您的回答为我指明了正确的方向,现在已解决:)干杯,托马斯
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-09-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-09-25
相关资源
最近更新 更多