Bug - ember-inflector throws when included more than once in an app/addon
jenweber opened this issue · 0 comments
jenweber commented
If someone yarn links ember-inflector, they can end up with two copies running. defineProperty
used in deprecations will throw because the prototype is already defined:
TypeError: Cannot redefine property: pluralize
This can possibly be patched by passing { configurable: true }
when defining the prototype:
Object.defineProperty(Ember.String, 'pluralize', { configurable: true });
There is a merged PR removing these deprecations, but it's unreleased and it's a major breaking change: #154 This change might be a possible patch version until the "real" fix goes out in a release.