{"record":{"id":"ec5c79abe03358ce","repo":"ueberdosis/tiptap","slug":"tiptap-error-unsupported-domoutputspec-type-ch","errorCode":null,"errorMessage":"[tiptap error]: Unsupported DomOutputSpec type, check the `renderHTML` method output or implement a node mapping","messagePattern":"\\[tiptap error\\]: Unsupported DomOutputSpec type, check the `renderHTML` method output or implement a node mapping","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/static-renderer/src/pm/html-string/html-string.ts","lineNumber":97,"sourceCode":"          return () => `<${tag}${serializeAttrsToHTMLString(attrs)}></${tag}>`\n        }\n        return () => `<${tag}${serializeAttrsToHTMLString(attrs)}/>`\n      }\n      if (children === 0) {\n        return child =>\n          `<${tag}${serializeAttrsToHTMLString(attrs)}>${serializeChildrenToHTMLString(child)}</${tag}>`\n      }\n\n      return child =>\n        `<${tag}${serializeAttrsToHTMLString(attrs)}>${[children]\n          .concat(rest)\n          .map(a => domOutputSpecToHTMLString(a)(child))\n          .join('')}</${tag}>`\n    }\n  }\n\n  // TODO support DOM elements? How to handle them?\n  throw new Error(\n    '[tiptap error]: Unsupported DomOutputSpec type, check the `renderHTML` method output or implement a node mapping',\n    {\n      cause: content,\n    },\n  )\n}\n\n/**\n * This function will statically render a Prosemirror Node to HTML using the provided extensions and options.\n *\n * Limitations: this function builds the schema and runs each extension's\n * `renderHTML`, but does not instantiate an `Editor`. Extensions that mutate\n * the document inside `addProseMirrorPlugins`, `onCreate`, or transaction\n * hooks will not run. For UniqueID, pre-process the JSON with\n * `generateUniqueIds` from `@tiptap/extension-unique-id`; for TableOfContents,\n * pre-process with `generateTocIds` from `@tiptap/extension-table-of-contents`.\n *\n * @param content The content to render to HTML","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/static-renderer/src/pm/html-string/html-string.ts#L79-L115","documentation":"Error \"[tiptap error]: Unsupported DomOutputSpec type, check the `renderHTML` method output or implement a node mapping\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/static-renderer/src/pm/html-string/html-string.ts:97 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":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}