Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple versions of Prosemirror-model loaded #2919

Closed
mikemartin opened this issue Nov 25, 2020 · 8 comments
Closed

Multiple versions of Prosemirror-model loaded #2919

mikemartin opened this issue Nov 25, 2020 · 8 comments

Comments

@mikemartin
Copy link

Bug Description

When editing a Bard field inside a Bard set, you get the following error when creating a new line:
Uncaught RangeError: Can not convert <> to a Fragment (looks like multiple versions of prosemirror-model were loaded).

This is possibly related to ueberdosis/tiptap#577 or the latest Statamic update: b74c61e05

Extra Detail

Screen Shot 2020-11-26 at 10 38 38 am

Environment

Statamic 3.0.31 Pro
Laravel 8.16.1
PHP 7.4.9
statamic/migrator dev-master
statamic/seo-pro 2.0.14

Install method (choose one):

  • Fresh install from statamic/statamic
@robdekort
Copy link
Contributor

Was able to reproduce this in Firefox. In Safari it seems to work.

@robdekort
Copy link
Contributor

I took the liberty to label this critical.

@felixstoessel
Copy link

Same issue here using Firefox. If I am at the end of a paragraph/line in Bard and try to enter <return>, I get this issue.

@adnankussair
Copy link

Yup same issue here. Certain bard formatting options are throwing the prose mirror console error the one we experiencing it on was blockquote.

@ellukesmith
Copy link

ellukesmith commented Nov 27, 2020

I'm getting the same error in Chrome, but I don't have a Bard field inside a Bard set - adding a Bard field with default options to any Blueprint has the same issue. I'm also getting the same error in Safari - every time I hit enter, it throws the same error in the console.

Running the same version of Statamic (3.0.31 Pro).

UPDATE: Rolling back to 3.0.30 Pro stopped the issue for me. I agree with @mikemartin on this one, it was likely the upgrade of tiptap-extensions that's causing the issue.

@jeremydouglas
Copy link

I get this error on 3.0.31 when there's multiple Bards on a collection entry. Both in Chrome and Firefox.

@jasonvarga
Copy link
Member

Tackling this shortly.

@adnankussair
Copy link

Tackling this shortly.

Whoot! Thanks @jasonvarga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants