argument icon indicating copy to clipboard operation
argument copied to clipboard

Does not support [email protected]

Open jelhan opened this issue 6 years ago • 0 comments

Tests are failing for [email protected]. I'm seeing two different errors thrown by seven tests:

            Error: Assertion Failed: computed decorators must return an instance of an Ember ComputedProperty descriptor, received function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator$$1) {
                  (true && !(true
                  /* EMBER_NATIVE_DECORATOR_SUPPORT */
                  || isClassicDecorator$$1) && (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag', true || isClassicDecorator$$1));
                  (true && !(isClassicDecorator$$1 || !propertyDesc || !propertyDesc.get || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1) && (0, _debug.assert)(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unecessary.`, isClassicDecorator$$1 || !propertyDesc || !propertyDesc.get || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1));
                  var meta$$1 = arguments.length === 3 ? (0, _meta2.meta)(target) : maybeMeta;
                  desc.setup(target, key, propertyDesc, meta$$1);
                  var computedDesc = {
                    enumerable: desc.enumerable,
                    configurable: desc.configurable,
                    get: DESCRIPTOR_GETTER_FUNCTION(key, desc)
                  };
                  {
                    computedDesc.set = DESCRIPTOR_SETTER_FUNCTION(key, desc);
                  }
                  return computedDesc;
                }
                at Object.assert (http://localhost:7357/assets/vendor.js:37147:15)
                at initializeComputedProperty (http://localhost:7357/assets/vendor.js:68426:82)
                at Object.runClassFinishers (http://localhost:7357/assets/vendor.js:64523:49)
                at _decorate (http://localhost:7357/assets/vendor.js:64269:16)
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:6414:42)
                at runTest (http://localhost:7357/assets/test-support.js:4433:30)
                at Test.run (http://localhost:7357/assets/test-support.js:4419:6)
                at http://localhost:7357/assets/test-support.js:4640:12
                at advanceTaskQueue (http://localhost:7357/assets/test-support.js:4032:6)
                at advance (http://localhost:7357/assets/test-support.js:4013:4)
            TypeError: Cannot set property prop of [object Object] which has only a getter
                at setWithMandatorySetter (http://localhost:7357/assets/vendor.js:32281:24)
                at set (http://localhost:7357/assets/vendor.js:16332:45)
                at Object.set (http://localhost:7357/assets/vendor.js:28880:29)
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:6618:13)
                at runTest (http://localhost:7357/assets/test-support.js:4433:30)
                at Test.run (http://localhost:7357/assets/test-support.js:4419:6)
                at http://localhost:7357/assets/test-support.js:4640:12
                at advanceTaskQueue (http://localhost:7357/assets/test-support.js:4032:6)
                at advance (http://localhost:7357/assets/test-support.js:4013:4)
                at advanceTestQueue (http://localhost:7357/assets/test-support.js:4058:4)

I'm seeing the second error also at ember-yeti-table which uses this addon: https://github.com/miguelcobain/ember-yeti-table/issues/81

jelhan avatar Sep 24 '19 10:09 jelhan