« All deprecation guides

Deprecation Guide for Set positionalParams as a static property on the class

Setting positionalParams within .extend is deprecated. It has to be set as a static property on the class itself (.reopenClass).

Please change this:

import Ember from 'ember';

export default Ember.Component.extend({
  positionalParams: [ 'a', 'b' ]
});

to this:

import Ember from 'ember';

var Thing = Ember.Component.extend();
Thing.reopenClass({
  positionalParams: [ 'a', 'b' ]
});