You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error while processing route: index Cannot set property 'foo' of undefined TypeError: Cannot set property 'foo' of undefined
at defineProperties (http://localhost:4200/assets/vendor.js:156343:31)
at http://localhost:4200/assets/vendor.js:156348:23
at http://localhost:4200/assets/vendor.js:156502:5
Failure is coming from
defineProperties(Constructor.prototype,protoProps,protoInitializers)// protoInitializers === undefined// ... inside definePropertiesif(descriptor.initializer!==undefined){initializers[key]=descriptor;continue;// ERROR: Cannot set property 'foo' of undefined}
var_createDecoratedClass=(function(){functiondefineProperties(target,descriptors,initializers){for(vari=0;i<descriptors.length;i++){vardescriptor=descriptors[i];vardecorators=descriptor.decorators;varkey=descriptor.key;deletedescriptor.key;deletedescriptor.decorators;descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if('value'indescriptor||descriptor.initializer)descriptor.writable=true;if(decorators){for(varf=0;f<decorators.length;f++){vardecorator=decorators[f];if(typeofdecorator==='function'){descriptor=decorator(target,key,descriptor)||descriptor;}else{thrownewTypeError('The decorator for method '+descriptor.key+' is of the invalid type '+typeofdecorator);}}if(descriptor.initializer!==undefined){initializers[key]=descriptor;continue;}}Object.defineProperty(target,key,descriptor);}}returnfunction(Constructor,protoProps,staticProps,protoInitializers,staticInitializers){if(protoProps)defineProperties(Constructor.prototype,protoProps,protoInitializers);if(staticProps)defineProperties(Constructor,staticProps,staticInitializers);returnConstructor;};})();
Failure is coming from
Tests for this can be found here: ember-decorators/ember-decorators/pull/61
Seems like a Babel issue which might have been fixed in later versions. Might need to up babel-core but not too sure.
The text was updated successfully, but these errors were encountered: