[GH-ISSUE #21200] fix: Duplicate tiptap extension names in RichTextInput.svelte #34943

Closed
opened 2026-04-25 09:07:18 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Crag-Monkey on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21200

Description

The browser console shows warnings about duplicate tiptap extension names:

[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.

Root Cause

RichTextInput.svelte imports both StarterKit from @tiptap/starter-kit and extensions from @tiptap/extension-list. Since StarterKit already includes codeBlock, bulletList, listItem, and orderedList, these extensions are registered twice.

Suggested Fix

When using StarterKit, disable the built-in extensions that are being added separately:

StarterKit.configure({
  codeBlock: false,
  bulletList: false,
  listItem: false,
  orderedList: false,
})

Or alternatively, remove the duplicate imports from ListKit if StarterKit's versions are sufficient.

Environment

  • Open WebUI Version: v0.7.2
  • Docker Image: ghcr.io/open-webui/open-webui:main

This warning has been mentioned in several other issues:

However, none of these issues specifically track fixing the duplicate extension registration.

Originally created by @Crag-Monkey on GitHub (Feb 5, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21200 ## Description The browser console shows warnings about duplicate tiptap extension names: ``` [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. ``` ## Root Cause `RichTextInput.svelte` imports both `StarterKit` from `@tiptap/starter-kit` and extensions from `@tiptap/extension-list`. Since `StarterKit` already includes `codeBlock`, `bulletList`, `listItem`, and `orderedList`, these extensions are registered twice. ## Suggested Fix When using `StarterKit`, disable the built-in extensions that are being added separately: ```javascript StarterKit.configure({ codeBlock: false, bulletList: false, listItem: false, orderedList: false, }) ``` Or alternatively, remove the duplicate imports from `ListKit` if `StarterKit`'s versions are sufficient. ## Environment - **Open WebUI Version**: v0.7.2 - **Docker Image**: ghcr.io/open-webui/open-webui:main ## Related Issues This warning has been mentioned in several other issues: - #7852 - #10287 - #20629 - #16569 However, none of these issues specifically track fixing the duplicate extension registration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34943