ember-localstorage-adapter
ember-localstorage-adapter copied to clipboard
Uncaught TypeError: Cannot read property 'typeKey' of undefined
https://github.com/kurko/ember-localstorage-adapter/pull/121 seems to create problems for apps running ember-data 1.0.0-beta.16.1. I get this exception after upgrade from 0.5.3 to 0.5.4:
Uncaught TypeError: Cannot read property 'typeKey' of undefined
Stack trace:
ember$data$lib$system$store$$Service.extend.modelFor
ember$data$lib$system$store$$Service.extend.serializerFor
DS.LSAdapter.DS.Adapter.extend.createRecord
ember$data$lib$system$store$$_commit
...
I guess the typeKey/modelName changes are related to http://emberjs.com/blog/2015/05/21/ember-data-1-0-beta-18-released.html, but as stated there:
Accessing the typeKey property should still work, but will trigger deprecation warnings.
+1, having the same issue.
Just an update... this was fixed for me by upgrading to ember-data 1.13.1.
@simonihmig can you try upgrading ED and confirm?
Won't be able to do that for our app in question very soon, as the upgrade to 1.13.x is planned towards the end of the month...