ember-data-model-fragments: 3.0.0 beta - In Production, null exception when saving object
on ember-data 3.0.1, ember 3.0.0, and model-fragments 3.0.0-beta.1
TypeError: Cannot read property 'replace' of null
at e.func (vendor.js:2892)
at e.get (vendor.js:2132)
at S (vendor.js:2896)
at e.func (vendor.js:2890)
at e.get (vendor.js:2132)
at Object.k [as dasherize] (vendor.js:2896)
at _ (vendor.js:9743)
at o.modelFactoryFor (vendor.js:10157)
at e.getRecord (vendor.js:9937)
at o.createFragment (vendor.js:9337)
Can’t recreate it on dev mode. Any ideas?
Downgrading to Ember Data 2.17 and model-fragments 2.14 works
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 30 (13 by maintainers)
Commits related to this issue
- Fix ember-data 3.x compability Fixes https://github.com/lytics/ember-data-model-fragments/issues/290 — committed to JosephHalter/ember-data-model-fragments by JosephHalter 6 years ago
@maxzats @jakesjews I ran into this issue as well. For our app it happens when you create a record with a fragment array, but only if the app is built for a production environment. If you run the app locally with a development build the issue does not manifest.