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


#1

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.


#2

Nobody else run into this issue?


#3

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


#4

Sounds similar to what I was running into.


#5

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.


#6

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:


#7

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 ( http://stackoverflow.com/questions/26086667/ember-data-cannot-read-property-async-of-undefined/26086695#26086695 )


#8

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


#9

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

jumped to beta 11 and it’s gone