我刚从Ember 1.13.7升级到2.0.0,Ember Data 1.13.8升级到2.0.0-beta1。但是,我得到一个白色的屏幕,在控制台中我收到以下错误:
Uncaught TypeError: Cannot read property 'forEach' of undefined
(anonymous function) @ active-model-serializer.js:8
mod.state @ loader.js:141
tryFinally @ loader.js:21
requireModule @ loader.js:139
requireFrom @ loader.js:112
reify @ loader.js:97
mod.state @ loader.js:140
tryFinally @ loader.js:21
requireModule @ loader.js:139
requireFrom @ loader.js:112
reify @ loader.js:97
mod.state @ loader.js:140
tryFinally @ loader.js:21
requireModule @ loader.js:139
requireFrom @ loader.js:112
reify @ loader.js:97
mod.state @ loader.js:140
tryFinally @ loader.js:21
requireModule @ loader.js:139
(anonymous function) @ ember-load-initializers.js:23
default @ ember-load-initializers.js:20
(anonymous function) @ app.js:15
mod.state @ loader.js:141
tryFinally @ loader.js:21
requireModule @ loader.js:139
(anonymous function) @ app-boot.js:25
我不使用ActiveModelSerializer而是使用默认的JSONAPIAdapter / Serializer。
我很感激任何人都能给予的帮助。
感谢。