即使重新安装后,Meteor 也会不断崩溃

标签 meteor crash deploying

我正在尝试在本地主机上运行我的项目,但每当我尝试它时它都会崩溃。我什至尝试将其直接部署到 meteor 网站,但没有任何 react 。一切都是突然发生的。在我添加包“tap:i18n”和“accounts-facebook”之前,一切正常。

    /Users/haraldur/.meteor/packages/meteor-tool/.1.1.9.1sd3e7j++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
                    throw(ex);
                          ^ReferenceError: ServiceConfiguration is not defined
at lib/app.js:29:1
at /Users/haraldur/myapp/.meteor/local/build/programs/server/app/lib/app.js:47:4
at /Users/haraldur/myapp/.meteor/local/build/programs/server/boot.js:242:10
at Array.forEach (native)
at Function._.each._.forEach (/Users/haraldur/.meteor/packages/meteor-tool/.1.1.9.1sd3e7j++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
at /Users/haraldur/myapp/.meteor/local/build/programs/server/boot.js:137:5

退出代码:8
您的应用程序正在崩溃。等待文件更改。

最佳答案

这是我的 app.js 文件。我什至没有第 47 行。我很困惑。

Timeouts = {};

// Initialize my collections
Rooms = new Meteor.Collection("rooms");
Videos = new Meteor.Collection("videos");
Messages = new Meteor.Collection("messages");
Votes = new Meteor.Collection("votes");
Favorites = new Meteor.Collection("favorites");
Skips = new Meteor.Collection("skips");

Cache = {};
Cache.Spotify = new Meteor.Collection("cache_spotify");
Cache.YouTube = new Meteor.Collection("cache_youtube");
Cache.Echonest = new Meteor.Collection("cache_echonest");
Cache.Freebase = new Meteor.Collection("cache_freebase");

// Dependencies for YouTube player
youtubeApiReady = false;
youtubePlayerReady = false;

youtubeApiDependency = new Deps.Dependency;
youtubePlayerDependency = new Deps.Dependency;

onYouTubeIframeAPIReady = function(){
    youtubeApiReady = true;
    youtubeApiDependency.changed();
}

ServiceConfiguration.configurations.remove({
  service: "twitter"
});
ServiceConfiguration.configurations.insert({
  service: "twitter",
  consumerKey: APIKeys.twitter.consumerKey,
  secret: APIKeys.twitter.secret
});

关于即使重新安装后,Meteor 也会不断崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33224353/

相关文章:

web-config - 替换 Octopus Deploy 的 web.config 元素

git - pull git 存储库的特定标签

facebook - meteor -phonegap facebook oauth

path - 软件崩溃;设置路径时出错 : "rfPersonal"

javascript - 如何在 block 工作之前在 mocha 中获取断言?

jquery - IE 8 加载站点时崩溃,无法调试 -

javascript - Heroku 未在 JavaScript 应用程序中显示 CSS 更新

facebook - meteor 登录外部服务 : how to get profile information?

javascript - 获取 {{#each}} 的 .html()

javascript - meteor js 和全日历