我无法在Firebase上托管我的应用,而且我不确定如何修复它。我正在使用Ember Cli和Ember Data。
未捕获错误:无法找到从
导入的模块emberfire/initializers/emberfire
nutella/initializers/emberfire
我的文件夹中不存在nutella / initializers / emberfire。但是我在nutella / node_modules / emberfire / app / initializers / emberfire.js以及nutella / node_modules / emberfire / addon / initializers / emberfire.js上都有它。
我该怎么办?!
增加:
我正在使用“ember-cli”:“^ 0.2.3”, “emberfire”:“^ 1.4.4”,
对bower.js的依赖:
"ember": "1.11.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.16.1",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1",
"foundation": "~5.5.0",
"firebase": "^2.1.0",
"emberfire": "~1.4.4"
"firebase-simple-login": "~1.6.4"
答案 0 :(得分:2)
由于某种原因,当我将app-name / initializer文件夹中的文件名更改为emberfire.js时,这种方法有效。肯定有一些代码指定名称必须是emberfire.js。