ember-decorators / argument

Decorators for Component and Object arguments in Ember
MIT License
30 stars 18 forks source link

TypeError: meta.peekDescriptors is not a function #104

Open masterchef opened 5 years ago

masterchef commented 5 years ago

Exception:

wrap-field.js:175 Uncaught TypeError: meta.peekDescriptors is not a function
    at wrapField (wrap-field.js:175)
    at ExecutionPassRate.init (with-validation.js:45)
    at ExecutionPassRate.init (prevent-additional-arguments.js:43)
    at ExecutionPassRate.init (with-validation.js:40)
    at ExecutionPassRate.init (prevent-additional-arguments.js:43)
    at ExecutionPassRate.init (with-validation.js:40)
    at ExecutionPassRate.init (prevent-additional-arguments.js:43)
    at ExecutionPassRate.init (with-validation.js:40)
    at ExecutionPassRate.init (prevent-additional-arguments.js:43)
    at ExecutionPassRate.Class [as constructor] (core_object.js:113)

Sample code:

export default class BaseHighcharts extends Component {
  @argument('object')
  chartData = null;

  @argument(optional('string'))
  product = null;

  @argument(optional('string'))
  startTime = null;

  @argument(optional('string'))
  endTimes = null;
...

Setup:

ember-cli@3.7.1
ember-decorators@3.1.5
@ember-decorators/argument1.0.0-beta.2