ueberdosis/tiptap · error · Error

There is no mark type named '${nameOrType}'. Maybe you forgo

Error message

There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?

What it means

Error "There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?" thrown in ueberdosis/tiptap.

Source

Thrown at packages/core/src/helpers/getMarkType.ts:6

import type { MarkType, Schema } from '@tiptap/pm/model'

export function getMarkType(nameOrType: string | MarkType, schema: Schema): MarkType {
  if (typeof nameOrType === 'string') {
    if (!schema.marks[nameOrType]) {
      throw Error(
        `There is no mark type named '${nameOrType}'. Maybe you forgot to add the extension?`,
      )
    }

    return schema.marks[nameOrType]
  }

  return nameOrType
}

View on GitHub (pinned to 496d53afd7)

When it happens

Trigger: Thrown at packages/core/src/helpers/getMarkType.ts:6 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/0f1f26f58f5bd790. Report an issue: GitHub.