gpt4 book ai didi

javascript - 望远镜应用程序不断崩溃 - meteor

转载 作者:行者123 更新时间:2023-12-03 12:30:33 25 4
gpt4 key购买 nike

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

  • 安装 Meteor
  • 安装陨石
  • 下载或克隆 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

i18n 是由 telescope-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 存储库下载它并替换您的以确保。

第二个可能出错的地方是 .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 )

关于javascript - 望远镜应用程序不断崩溃 - meteor ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23951968/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com