Description
The browser console shows a warning on every editor mount:
[tiptap warn]: Duplicate extension names found: ['link']. This can lead to issues.
Steps to Reproduce
- Open the app
- Open any markdown file
- Check browser DevTools console
- Warning appears every time the editor mounts
Expected Behavior
No duplicate extension warnings in the console.
Actual Behavior
Warning spam on every editor mount, and potential for unpredictable behavior when two extensions share the same name.
Root Cause (Investigation)
StarterKit v3.x now includes the Link extension by default. The codebase also separately adds Link.configure() with custom settings (openOnClick: false, custom HTMLAttributes). This results in two Link extensions being registered.
Impact
- Console warning spam
- Unpredictable behavior when two extensions share a name (Tiptap uses one and ignores the other non-deterministically)
- Configuration conflicts between StarterKit's Link defaults and the custom settings
Environment
- Rowboat version: v0.1.60
- Tiptap version: 3.15.x
- OS: All platforms
Description
The browser console shows a warning on every editor mount:
Steps to Reproduce
Expected Behavior
No duplicate extension warnings in the console.
Actual Behavior
Warning spam on every editor mount, and potential for unpredictable behavior when two extensions share the same name.
Root Cause (Investigation)
StarterKit v3.x now includes the Link extension by default. The codebase also separately adds
Link.configure()with custom settings (openOnClick: false, custom HTMLAttributes). This results in two Link extensions being registered.Impact
Environment