You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When combining computed macros including raw an error is thrown when passing the computed property to a component/helper in a template. Combining other macros than raw works fine.
E.g. supplementsAmount: sum(mapBy('model.supplements', raw('amount')))
causes the error
Error: Assertion Failed: EmberObject.create no longer supports defining computed properties. Define computed properties using extend() or reopen() before calling create().
When combining computed macros including
raw
an error is thrown when passing the computed property to a component/helper in a template. Combining other macros thanraw
works fine.E.g.
supplementsAmount: sum(mapBy('model.supplements', raw('amount')))
causes the error
Error: Assertion Failed: EmberObject.create no longer supports defining computed properties. Define computed properties using extend() or reopen() before calling create().
The issue seems to be related to @bendemboski's review on kellyselden/ember-macro-helpers#260. When using
"ember-macro-helpers": "bendemboski/ember-macro-helpers#fix-ember-3-10"
the error disappears.
The text was updated successfully, but these errors were encountered: