{"record":{"id":"00aaa7073e01c144","repo":"iflytek/astron-agent","slug":"cannot-call-a-class-as-a-function","errorCode":null,"errorMessage":"Cannot call a class as a function","messagePattern":"Cannot call a class as a function","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js","lineNumber":141,"sourceCode":"  return (\n    (function (e) {\n      if (Array.isArray(e)) return y(e);\n    })(e) ||\n    (function (e) {\n      if ('undefined' != typeof Symbol && Symbol.iterator in Object(e))\n        return Array.from(e);\n    })(e) ||\n    E(e) ||\n    (function () {\n      throw new TypeError(\n        'Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n      );\n    })()\n  );\n}\nfunction _(e, t) {\n  if (!(e instanceof t))\n    throw new TypeError('Cannot call a class as a function');\n}\nfunction k(e, t) {\n  for (var i = 0; i < t.length; i++) {\n    var r = t[i];\n    ((r.enumerable = r.enumerable || !1),\n      (r.configurable = !0),\n      'value' in r && (r.writable = !0),\n      Object.defineProperty(e, r.key, r));\n  }\n}\nfunction O(e, t, i) {\n  return (t && k(e.prototype, t), i && k(e, i), e);\n}\nfunction w(e) {\n  var t = { exports: {} };\n  return (e(t, t.exports), t.exports);\n}\nvar A = w(function (e) {","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js#L123-L159","documentation":"Babel-compiled _classCallCheck TypeError: a class constructor was invoked without new (i.e. called as a plain function). In this bundle it means something in the xrtc player instantiated a class incorrectly, usually due to bundler/transform interop issues.","triggerScenarios":"Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:141 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure classes are always constructed with new","Check for mixed module-system interop (CJS default export vs class)","Rebuild/re-pin the SDK bundle if a transform mismatch introduced this"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5e758547a83371a5a4b29dadf4ac03e8dd527635","analyzedAt":"2026-09-12T08:03:51.356Z","contentChangedAt":"2026-09-12T08:03:51.356Z","schemaVersion":2},"datasetVersion":"2026-09-19T12:17:13.211Z"}