[英]ember-data initialization error: “Uncaught TypeError”
I have just downloaded ember-1.0.0-pre.4.js and ember-data-latest.js and get the following error upon the initialization of the app: 我刚刚下载了ember-1.0.0-pre.4.js和ember-data-latest.js,并在应用初始化时收到以下错误消息:
Uncaught TypeError: Object Ember.Application has no method 'registerInjection'
未捕获的TypeError:对象Ember.Application没有方法'registerInjection'
How can I fix this? 我怎样才能解决这个问题?
Unfortunately ember-data-latest.js on GitHub isn't up-to-date with Ember Pre 4. You'll have to git clone
the Ember DS repository, and then build them using rake
. 不幸的是,GitHub上的ember-data-latest.js并不是Ember Pre 4的最新版本。您必须
git clone
Ember DS存储库,然后使用rake
进行构建。
You can find it here or the minified version from here 您可以在这里找到它,也可以从这里找到缩小版本
you can get it from http://cdnjs.com/ concretely: 您可以从http://cdnjs.com/具体获得它:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.