Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set property 'configurable' of undefined #84

Closed
ma3yta opened this issue Jun 15, 2016 · 2 comments
Closed

Cannot set property 'configurable' of undefined #84

ma3yta opened this issue Jun 15, 2016 · 2 comments

Comments

@ma3yta
Copy link

ma3yta commented Jun 15, 2016

After updating aurelia-validatejs I got error undefined:1 Uncaught (in promise) Error: Cannot set property 'configurable' of undefined https://gyazo.com/a60d0c503bbad66d8e8e4050b65dfefd

its the decorator that fails when adding the rule:


 function addRule(target, key, descriptor, targetOrConfig, rule) {
    var rules = _aureliaMetadata.metadata.getOrCreateOwn(metadataKey, ValidationRules, target);
    if (targetOrConfig === null || targetOrConfig === undefined) {
      targetOrConfig = true;
    }
    rules.addRule(key, rule(targetOrConfig));

    descriptor.configurable = true;   <---------------- fails here
  }

The descriptor is undefined

@ma3yta
Copy link
Author

ma3yta commented Jun 15, 2016

@PWKad or @jdanyow Could you please take a look?

@imressed
Copy link

Have the same error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants