ember-localstorage-adapter icon indicating copy to clipboard operation
ember-localstorage-adapter copied to clipboard

Uncaught TypeError: Cannot read property 'typeKey' of undefined

Open simonihmig opened this issue 9 years ago • 4 comments

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.

simonihmig avatar Jul 06 '15 17:07 simonihmig

+1, having the same issue.

kaiwah avatar Jul 14 '15 21:07 kaiwah

Just an update... this was fixed for me by upgrading to ember-data 1.13.1.

kaiwah avatar Jul 15 '15 16:07 kaiwah

@simonihmig can you try upgrading ED and confirm?

kurko avatar Jul 30 '15 19:07 kurko

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...

simonihmig avatar Aug 05 '15 15:08 simonihmig