ember数据初始化错误:“未捕获类型错误” [英] ember-data initialization error: "Uncaught TypeError"

查看:77
本文介绍了ember数据初始化错误:“未捕获类型错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了ember-1.0.0-pre.4.js和ember-data-latest.js,并在应用程序初始化时收到以下错误:



没有方法'registerInjection'

我如何解决这个?/ p>

解决方案

不幸的是,在GitHub上的ember-data-latest.js 不是使用Ember Pre 4.您必须使用 git clone Ember DS存储库,然后使用 rake



你可以找到它这里或从 here


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?

解决方案

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

这篇关于ember数据初始化错误:“未捕获类型错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆