You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've been using adapter with "ember-data": "1.0.0-beta.10", but after upgrading to beta.14.1 I get the following error. I'm doing this:
this.store.findAll('session');
The adapter and model are really really basic:
var SessionAdapter = DS.LSAdapter.extend({
namespace: 'session'
});
var Session = DS.Model.extend({
name: DS.attr('string')
});
Error: Assertion Failed: TypeError: Invalid fullName: `model:@each`, must be of the form `type:name`
If I "hardcode" the model into the results, the error goes away. I'm sadly unable to fix myself, sorry! I have tried :) PhantomJS not working either, just as an FYI.
findAll: function (store, type) {
var namespace = this._namespaceForType(type),
results = [];
for (var id in namespace.records) {
results.push(Ember.copy(namespace.records[id]));
}
results = {"session": results}; //Resolver in Ember-CLI is perhaps causing trouble?
return Ember.RSVP.resolve(results);
},
Hey, yes and thanks for taking a look. I've gotten a lot of mileage out of this adapter, and I just couldn't sleuth the problem myself: Public repo, including node and bower components, just for reproduction of the issue.
So I've been using adapter with "ember-data": "1.0.0-beta.10", but after upgrading to beta.14.1 I get the following error. I'm doing this:
The adapter and model are really really basic:
If I "hardcode" the model into the results, the error goes away. I'm sadly unable to fix myself, sorry! I have tried :) PhantomJS not working either, just as an FYI.
https://github.com/kurko/ember-localstorage-adapter/blob/master/localstorage_adapter.js#L219
Full Stack Trace.
The text was updated successfully, but these errors were encountered: