partykit / partykit

PartyKit simplifies developing multiplayer applications
https://docs.partykit.io/
MIT License
4.48k stars 150 forks source link

Yjs was already imported. - error with y-partykit 0.0.5 & 0.0.6 #445

Open nyacg opened 10 months ago

nyacg commented 10 months ago

I experiened some strange issues where the Y.js Partykit integration seemed to stop working with TipTap/prosemirror

Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438

This error is both in the partykit logs and in the browser console logs

I traced it down to a bump in y-partykit from 0.0.4 to 0.0.6 (and also experience the same issue with 0.0.5

partykit is on 0.0.25

y-prosemirror is on the latest version (1.2.1)

I'm also using @hocuspocus/transformer latest (2.5.0)

It seems like there is only one version of Y.js installed in my node_modules (13.6.7)

threepointone commented 10 months ago

I'm able to reproduce this with a simple import of y-partykit in a new next js project. I'll investigate.