ueberdosis/tiptap · error

The `validate` option is deprecated. Rename to the `shouldAu

Error message

The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.

What it means

Error "The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead." thrown in ueberdosis/tiptap.

Source

Thrown at packages/extension-link/src/link.ts:233

/**
 * This extension allows you to create links.
 * @see https://www.tiptap.dev/api/marks/link
 */
export const Link = Mark.create<LinkOptions>({
  name: 'link',

  priority: 1000,

  keepOnSplit: false,

  exitable: true,

  onCreate() {
    // TODO: v4 - remove validate option
    if (this.options.validate && !this.options.shouldAutoLink) {
      // Copy the validate function to the shouldAutoLink option
      this.options.shouldAutoLink = this.options.validate
      console.warn(
        'The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.',
      )
    }
    this.options.protocols.forEach(protocol => {
      if (typeof protocol === 'string') {
        registerCustomProtocol(protocol)
        return
      }
      registerCustomProtocol(protocol.scheme, protocol.optionalSlashes)
    })
  },

  onDestroy() {
    reset()
  },

  inclusive() {
    return this.options.autolink

View on GitHub (pinned to 496d53afd7)

When it happens

Trigger: Thrown at packages/extension-link/src/link.ts:233 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/dcfcf3762def98f1. Report an issue: GitHub.