ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
26.54k stars 2.23k forks source link

[Bug]: vercel build fail with 2.5.5 version #5383

Closed nakedfool closed 1 month ago

nakedfool commented 1 month ago

Affected Packages

@tiptap/core, @tiptap/extension-image, @tiptap/extension-link, @tiptap/extension-placeholder, @tiptap/pm, @tiptap/react, @tiptap/starter-kit

Version(s)

2.5.5

Bug Description

image image

Build failing on Vercel with tiptap v2.5.5.

Steps to reproduce:

  1. Use tiptap v2.5.5 in project
  2. Deploy to Vercel

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

Successful build and deployment.

Additional Context (Optional)

No response

Dependency Updates

nperez0111 commented 1 month ago

It looks to me that you have two versions of prosemirror-model installed. One in the root of your repo & one via the @tiptap/pm module. We obviously only support you pulling this package in via the @tiptap/pm module & not separately. So you will need to remove the other reference to prosemirror-model that you have.

You can see why it was included by running: npx npm-why prosemirror-model