簡體   English   中英

望遠鏡應用不斷崩潰-流星

[英]Telescope app keeps crashing - meteor

我是Meteor的新手,正在嘗試使Telescope運行。 我采取了以下步驟;

  • 安裝流星
  • 安裝隕石
  • 將Telescope下載或克隆到/ some / path
  • cd /一些/路徑
  • 運行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.

有誰能指出我正確的方向?

非常感謝,托馬斯

該錯誤表明未定義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');
});

首先要檢查的是包在package文件夾中; 並且它沒有損壞。 您應該從github存儲庫下載它並替換以確保。

可能出錯的第二件事是.meteor/packages文件中缺少該.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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM