Skip to content

Tiptap dependencies should be peer ones #6590

@KazimirPodolski

Description

@KazimirPodolski

Package

v4.x

Description

I'm using Tiptap in a Nuxt UI project by myself and I'm keeping it to the latest version, however Nuxt UI forcing specific versions messes up my pnpm:

"dependencies": {
...
    "@tiptap/core": "^3.23.6",
    "@tiptap/extension-bubble-menu": "^3.23.6",
...
}

Results in a great confusion for pnpm:

✕ unmet peer @tiptap/pm
  Installed: 3.26.1
  Wanted:
    3.23.6:
      @tiptap/core@3.23.6
      @tiptap/extension-collaboration@3.23.6
      @tiptap/extension-drag-handle@3.23.6
      @tiptap/extension-drag-handle-vue-3@3.23.6
      @tiptap/extension-floating-menu@3.23.6
      @tiptap/extension-horizontal-rule@3.23.6
      @tiptap/extension-mention@3.23.6
      @tiptap/extension-node-range@3.23.6
      @tiptap/markdown@3.23.6
      @tiptap/suggestion@3.23.6

✕ unmet peer @tiptap/core
  Installed: 3.23.6
  Wanted:
    3.26.1:
      @tiptap/extension-bubble-menu@3.26.1
      @tiptap/vue-3@3.26.1
      @tiptap/extension-floating-menu@3.26.1

✕ unmet peer @tiptap/core
  Installed: 3.26.1
  Wanted:
    3.23.6:
      @tiptap/extension-collaboration@3.23.6
      @tiptap/extension-drag-handle@3.23.6
      @tiptap/extension-node-range@3.23.6
      @tiptap/suggestion@3.23.6

✕ unmet peer @tiptap/vue-3
  Installed: 3.26.1
  Wanted:
    3.23.6:
      @tiptap/extension-drag-handle-vue-3@3.23.6

✕ unmet peer @tiptap/extensions
  Installed: 3.26.1
  Wanted:
    3.23.6:
      @tiptap/extension-placeholder@3.23.6

This creates annoying chore of resolving versions unless nothing works as now I have 2 sets of @tiptap packages at the same time with all it's consequences.

Additional context

IMO something with a strong a dependency on such a large project should be rather a separate @nuxt/editor package. But I'm not 100% sure it's the solution nowadays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv4#4488

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions