{"record":{"id":"7a7377479c927e2f","repo":"emberjs/ember.js","slug":"you-attempted-to-use-cached-which-is-not-neces","errorCode":null,"errorMessage":"You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!","messagePattern":"You attempted to use @cached\\(\\), which is not necessary nor supported\\. Remove the parentheses and you will be good to go!","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@ember/-internals/metal/lib/cached.ts","lineNumber":127,"sourceCode":"  }\n  if (DEBUG && (!('get' in descriptor) || typeof descriptor.get !== 'function')) {\n    throwCachedGetterOnlyError(key);\n  }\n\n  const caches = new WeakMap();\n  const getter = descriptor.get;\n\n  descriptor.get = function (): unknown {\n    if (!caches.has(this)) {\n      caches.set(this, createCache(getter.bind(this)));\n    }\n\n    return getValue(caches.get(this));\n  };\n};\n\nfunction throwCachedExtraneousParens(): never {\n  throw new Error(\n    'You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!'\n  );\n}\n\nfunction throwCachedGetterOnlyError(key: string): never {\n  throw new Error(`The @cached decorator must be applied to getters. '${key}' is not a getter.`);\n}\n\nfunction throwCachedInvalidArgsError(args: unknown[] = []): never {\n  throw new Error(\n    `You attempted to use @cached on with ${\n      args.length > 1 ? 'arguments' : 'an argument'\n    } ( @cached(${args\n      .map((d) => `'${d}'`)\n      .join(\n        ', '\n      )}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`\n  );","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@ember/-internals/metal/lib/cached.ts#L109-L145","documentation":"Error \"You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@ember/-internals/metal/lib/cached.ts:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}