문제

내 모델

입니다

App.Person = DS.Model.extend({
    first_name: null,
    last_name: null,
    gender: null,
    profession: null,
    age: null
});
.

및 Firebug가 나에게 2 가지 오류를줍니다 :

TypeError: Ember.EnumerableUtils is undefined
[Break On This Error]   

removeObject = Ember.EnumerableUtils.removeObject;
.

및 ds.model

을 확장하는 것
TypeError: DS.Model is undefined
[Break On This Error]   

App.Person2 = DS.Model.extend({
.

ember.Object 확장 동일한 모델로 잘 작동합니다. DS를 사용할 수 없습니다. *

Google은 이러한 오류 메시지에 대한 결과가 0입니다

도움이 되었습니까?

해결책

이 가장 큰 원인은 ember-data와 ember libs의 나쁜 조합입니다. 약 4 주 전에 Ember.ArrayUtilsEmber.EnumerableUtils로 이름이 바뀌 었습니다. Ember-Data의 꽤 최근 버전을 사용하고 있지만 이전 버전의 Ember.js를 사용하고 있다고 가정합니다.Ember를 최신으로 최신으로 업그레이드하거나 ember-data에서 찾아서 교체 할 수 있습니다.

다른 일관성으로 실행될 수 있습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top