[PRO]: Unique id leads to "multiple versions of prosemirror-model were loaded" issues in testing. #6171
Labels
Category: Pro
The issue or pull request is related to the pro packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-unique-id
Version(s)
2.17.5
Description of the Bug
I am trying to test my editor environment using vitest. However, when I load the editor I am getting the following error:
Now, I saw the other issues on this repo that encountered the same error and I tried everything they suggested:
But nothing works.
I then realised that when I do
yarn why prosemirror-model
, I get:which means no real duplication is taking place.
I also realised then, that when I remove
@tiptap-pro/extension-unique-id
from the extensions being loaded, everything seems to work fine.So even though no duplication is taking place, the unique-id extension creates a situation where multiple versions of prosemirror-model are loaded.
Is there any way to fix this? I can write tests at the moment but no tests that check for correct handling of unique ids.
Browser Used
Chrome
Code Example (Preferred)
No response
Expected Behavior
That no errors are occurring when I run my editor test suite.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: