我是一个 emberjs 初学者,我一直在寻找如何将“firebase”和“emberfire”依赖项添加到我使用 ember-cli 创建的 ember 应用程序中。我使用 bower 安装了这两个依赖项,但出现此错误:
Firebase is not defined
ReferenceError: Firebase is not defined
at eval (app/adapters/application.js:6:23)
at requireModule (loader.js:54:29)
at resolveOther (ember-resolver.js:158:20)
at superWrapper (ember.js:1267:16)
at Ember.DefaultResolver.extend.resolve (ember-resolver.js:205:17)
at superWrapper [as resolve] (ember.js:1267:16)
at Object.resolve [as resolver] (ember.js:41149:21)
at Object.Container.resolve (ember.js:10907:29)
at factoryFor (ember.js:11373:31)
at instantiate (ember.js:11434:21)
这是我的适配器:
export default DS.FirebaseAdapter.extend({
firebase: new Firebase('https://(myfirebaseurl).firebaseio.com')
});
我应该怎么办?我知道我一定错过了一些东西,但我已经花了很多时间,给出的任何答案都会有很大的帮助!提前致谢 :)