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

rules[i].match.exec is not a function #2026

Closed
1 of 2 tasks
andreispatarelu opened this issue Oct 12, 2021 · 11 comments
Closed
1 of 2 tasks

rules[i].match.exec is not a function #2026

andreispatarelu opened this issue Oct 12, 2021 · 11 comments
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@andreispatarelu
Copy link

What’s the bug you are facing?

I get rules[i].match.exec is not a function when trying to use with react

Uncaught TypeError: rules[i].match.exec is not a function
at run (index.es.js:76)
at Plugin.handleTextInput (index.es.js:51)
at index.es.js:2778
at EditorView.someProp (index.es.js:5011)
at readDOMChange (index.es.js:2778)
at DOMObserver.handleDOMChange (index.es.js:3388)
at DOMObserver.flush (index.es.js:3301)
at MutationObserver.DOMObserver.observer (index.es.js:3168)

How can we reproduce the bug on our side?

Add tiptap and add Image extension, try to write something in the editor

Can you provide a CodeSandbox?

No response

What did you expect to happen?

TiptapE

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@andreispatarelu andreispatarelu added the Type: Bug The issue or pullrequest is related to a bug label Oct 12, 2021
@philippkuehn
Copy link
Contributor

which versions of tiptap do you use? I think updating to the latest versions should help.

@andreispatarelu
Copy link
Author

I was using the latest version. Downgrading to 2.0.0-beta.15 it works as expected

@philippkuehn
Copy link
Contributor

can you post the content of your yarn or npm lock file please?

@caparker
Copy link

I am getting basically the same error I think

index.es.js:76 Uncaught TypeError: r[d].match.exec is not a function
at c (index.es.js:76)
at I.handleTextInput (index.es.js:51)
at index.es.js:2710
at Un.someProp (index.es.js:4874)
at pe (index.es.js:2710)
at Pe. (index.es.js:3297)
at Pe.flush (index.es.js:3210)
at MutationObserver. (index.es.js:3077)

@philippkuehn
Copy link
Contributor

match.exec comes from prosemirror-inpurules. This package isn’t used by tiptap anymore. Please update your tiptap packages to the latest versions.

@RomainMazB
Copy link

RomainMazB commented Oct 12, 2021

Just to confirm: I faced the exact same bug (a huge coincidence that this happened to three person the same day), and updating the packages resolved the issue.

@philippkuehn
Copy link
Contributor

There was a breaking change a few days ago so I was expecting some reports #1997

@andreispatarelu
Copy link
Author

can you post the content of your yarn or npm lock file please?

image

@philippkuehn
Copy link
Contributor

@andreavaccari yeah these are not the latest versions.

@GatekoNeko141
Copy link

Help me, i soo have the same problem! I have to use version 2 of vue

image

@philippkuehn
Copy link
Contributor

@GatekoNeko141 Yes, you have the same problem because you also did not update your dependencies.

@ueberdosis ueberdosis locked and limited conversation to collaborators Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

5 participants