Ember issue with 1.8.0-beta.3 and 1.8.0-beta.4

I haven’t filled a bug yet because I wanted to ask first. It’s very likely that I’m doing something wrong. However, the error comes from vendor.js (Console says Uncaught TypeError: undefined is not a function):

var isPathCache = new Cache(1000, function(key) { return key.indexOf('.') !== -1; });

I have a form with a table. Once you submit the form it creates a model (table is updated because of .property('model.[]')) and then it saves it (Ember-Data save()). Apparently, if I remove the .save() and just create the record, it adds it to the table and there is no error, but of course it’s not persisted. I’m using Ember-Data 1.0.0-beta.10.

I should note that it works fine with Ember 1.8.0-beta.2

Thank you.

1 Like

Nobody else run into this issue?

Try using canary version of Ember Data. I believe there are issues with Ember Data beta 10.

Sounds similar to what I was running into. https://github.com/stefanpenner/ember-cli/issues/2208

I have the exact same issue with beta.4. Works fine with ember 1.8.0-beta.2 and ember-data 1.0.0-beta.8.

Yep, I have the exact same issue with Ember 1.8 beta4, EmberData 1.0.0-beta10 with RESTAdapter. So it is definitely a BUG! :smile:

It was already fixed in Ember Data, you need to hop up to a canary version of Ember Data https://github.com/emberjs/data/issues/2323 ( javascript - Ember Data cannot read property 'async' of undefined - Stack Overflow )

1 Like

Awesome. Thank you. I give it a try. Cheers bro. :smile:

Here is a JSBin, and works with canary… Brilliant. http://emberjs.jsbin.com/nunaz/1/edit

just saw this pop up with Ember 1.8.1 & ember-data 1.0.0beta5

jumped to beta 11 and it’s gone