Error AtlasError Documentation and Resolution

JavaScript tried to serialize a circular object

TypeError: cyclic object value

JavaScript found a circular reference while attempting to serialize an object to JSON.

TypeError: cyclic object valuejson
TypeError: cyclic object value
  • JSON.stringify encountered a circular reference.
  • Nested data structures point back to an ancestor object.
  • State or response objects contain linked structures that JSON cannot represent directly.
  1. Break or omit circular references before serializing.
  2. Use a replacer function or custom serializer that handles cycles deliberately.
  3. Inspect object graphs for parent links or self-references.
MDN: TypeError: cyclic object value
JavaScript cyclic object value: causes and fixes | Error Atlas