ueberdosis/tiptap · error · Error

[tiptap error]: Mark ${extension.name} cannot be rendered, i

Error message

[tiptap error]: Mark ${extension.name} cannot be rendered, it's "renderToHTML" method threw an error: ${(e as Error).message}

What it means

Error "[tiptap error]: Mark ${extension.name} cannot be rendered, it's "renderToHTML" method threw an error: ${(e as Error).message}" thrown in ueberdosis/tiptap.

Source

Thrown at packages/static-renderer/src/pm/extensionRenderer.ts:174

        throw new Error(
          `Node ${extension.name} cannot be rendered, it is missing a "renderToHTML" method`,
        )
      },
    ]
  }

  return [
    extension.name,
    ({ mark, children }) => {
      try {
        return domOutputSpecToElement(
          renderToHTML({
            mark,
            HTMLAttributes: getHTMLAttributes(mark, extensionAttributes),
          }),
        )(children)
      } catch (e) {
        throw new Error(
          `[tiptap error]: Mark ${
            extension.name
          } cannot be rendered, it's "renderToHTML" method threw an error: ${(e as Error).message}`,
          { cause: e },
        )
      }
    },
  ]
}

// Placeholder node/mark types injected into a copy of the schema so JSON that
// references types missing from the user's schema can still be converted by
// `Node.fromJSON`. The original type/attrs are carried on the placeholder and
// restored when it reaches `unhandledNode`/`unhandledMark`.
const UNHANDLED_NODE_TYPE = '__tiptapUnhandledNode__'
const UNHANDLED_MARK_TYPE = '__tiptapUnhandledMark__'
const ORIGINAL_TYPE_ATTR = '__originalType'
const ORIGINAL_ATTRS_ATTR = '__originalAttrs'

View on GitHub (pinned to 496d53afd7)

When it happens

Trigger: Thrown at packages/static-renderer/src/pm/extensionRenderer.ts:174 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ueberdosis/tiptap@496d53afd7 (2026-08-26). Data as JSON: /api/errors/465856b8444504f6. Report an issue: GitHub.