ember-decorators / argument

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

`argument` throws `desc is undefined` #107

Open allthesignals opened 5 years ago

allthesignals commented 5 years ago

import { argument } from '@ember-decorators/argument';

class ProjectFormComponent extends Component {
  @argument
  model;
}

throws:

TypeError: desc is undefined[Learn More] index.js:33

    internalArgumentDecorator2Ember

decorateElement decorate.js:118 decorateClass decorate.js:83 forEach (index):262 decorateClass decorate.js:81 _decorate decorate.js:21 <anonymous> project-form.js:8 exports loader.js:106 requireModule loader.js:27 _extractDefaultExport18Ember
compile opcode-compiler.js:423 compileInline opcode-compiler.js:943 compileInline opcode-compiler.js:1509 statementCompiler opcode-compiler.js:192 compile opcode-compiler.js:47 compile opcode-compiler.js:745 add opcode-compiler.js:952 compile opcode-compiler.js:692 getLayout Ember   <anonymous> runtime.js:1723 evaluate runtime.js:72 evaluateSyscall runtime.js:3471 evaluateInner runtime.js:3417 evaluateOuter runtime.js:3409 next runtime.js:5530 next runtime.js:5632 render2Ember
runInTransaction (index):976 _renderRoots5Ember
invoke backburner.js:333 flush backburner.js:223 flush backburner.js:427 _end backburner.js:1003 end backburner.js:689 _run backburner.js:1056 _join backburner.js:1030 join backburner.js:749 join2Ember
mightThrow2jQuery

Removing the argument decorator gets rid of the problem...