ember-data initialization error: “Uncaught TypeError”

匿名 (未验证) 提交于 2019-12-03 08:30:34

问题:

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:

Uncaught TypeError: Object Ember.Application has no method 'registerInjection'

How can I fix this?

回答1:

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.

You can find it here or the minified version from here



回答2:

you can get it from http://cdnjs.com/ concretely:

  • //cdnjs.cloudflare.com/ajax/libs/ember-data.js/0.8.0-latest20121123/ember-data-latest.min.js
  • //cdnjs.cloudflare.com/ajax/libs/ember-data.js/0.8.0-latest20121123/ember-data-latest.js


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!