My project uses Ember Table, and we create a subclass of their 'ColumnDefinition' model. When I upgrade from Ember/Ember-data 3.1 to Ember 3.2 (regardless if I upgrade Ember-Data). I get the following error
jquery.js:3827 Uncaught TypeError: Class constructor ColumnDefinition cannot be invoked without 'new'
at new Class (VM64 ember.debug.js:40121)
at Function.create (VM64 ember.debug.js:40546)
at s.callback (VM73 about:srcdoc:24)
at s.exports (VM62 loader-9d2ccefb0dfd6784cc87f799ef2c9f44.js:17)
at requireModule (VM62 loader-9d2ccefb0dfd6784cc87f799ef2c9f44.js:4)
at Class._extractDefaultExport (VM68 twiddle-deps-86f6227589c097fcadf3a3088942a69b.js:65)
at Class.u (VM68 twiddle-deps-86f6227589c097fcadf3a3088942a69b.js:31)
at Class.superWrapper [as resolveOther] (VM64 ember.debug.js:43503)
at Class.resolveController (VM64 ember.debug.js:13856)
at Class.resolve (VM64 ember.debug.js:13763)
I know there are problems subclassing native classes in Ember, but the EmberTable object is itself an extension of Ember.Object
I have a twiddle reproducing the problem here: https://ember-twiddle.com/a1c519a2ee39714027dc12df2248464f?openFiles=twiddle.json%2C
Aucun commentaire:
Enregistrer un commentaire