ueberdosis/tiptap · error

[ResizableNodeView] createCustomHandle("${direction}") did n

Error message

[ResizableNodeView] createCustomHandle("${direction}") did not return an HTMLElement. Falling back to default handle.

What it means

Error "[ResizableNodeView] createCustomHandle("${direction}") did not return an HTMLElement. Falling back to default handle." thrown in ueberdosis/tiptap.

Source

Thrown at packages/core/src/lib/ResizableNodeView.ts:677

  /**
   * Creates and attaches all resize handles to the wrapper.
   *
   * Iterates through the configured directions, creates a handle for each,
   * positions it, attaches the mousedown listener, and appends it to the DOM.
   */
  private attachHandles(): void {
    this.directions.forEach(direction => {
      let handle: HTMLElement

      if (this.createCustomHandle) {
        handle = this.createCustomHandle(direction)
      } else {
        handle = this.createHandle(direction)
      }

      if (!(handle instanceof HTMLElement)) {
        console.warn(
          `[ResizableNodeView] createCustomHandle("${direction}") did not return an HTMLElement. Falling back to default handle.`,
        )
        handle = this.createHandle(direction)
      }

      if (!this.createCustomHandle) {
        this.positionHandle(handle, direction)
      }

      handle.addEventListener('mousedown', event => this.handleResizeStart(event, direction))
      handle.addEventListener('touchstart', event =>
        this.handleResizeStart(event as unknown as MouseEvent, direction),
      )

      this.handleMap.set(direction, handle)

      this.wrapper.appendChild(handle)
    })

View on GitHub (pinned to 496d53afd7)

When it happens

Trigger: Thrown at packages/core/src/lib/ResizableNodeView.ts:677 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/c2c02ade35a8dd1f. Report an issue: GitHub.