ueberdosis / hocuspocus

The CRDT Yjs WebSocket backend for conflict-free real-time collaboration in your app.
https://tiptap.dev/docs/hocuspocus/introduction
MIT License
1.32k stars 126 forks source link

Type 'Database' is not assignable to type 'Extension' #555

Closed martin-cycle closed 1 year ago

martin-cycle commented 1 year ago

Description I have typing problems with my configuration and the extensions I'm using. This error occurs for the Database and the Logger extensions. I am using ncc to build my node app, this could be linked to it but I'm not sure. I managed to make it work by casting the extensions used as unknown as Extension.

Expected behavior The project should build without casting the extensions or there should be some more information about required versions of packages to use.

Screenshot, video, or GIF

Screenshot 2023-03-29 at 16 05 49

Environment?

janthurau commented 1 year ago

hey @martin-cycle, just to check, this also looks related to different versions (see #549). Did you resolve this?

martin-cycle commented 1 year ago

The #549 was solved by simply calling my winston logger a bit differently but here I am still facing the issue. I'm gonna try to upgrade the hocuspocus to V2 to see if I still have the problem.

janthurau commented 1 year ago

Let me know if you still have that issue, until then, closed as I cant reproduce this.

carsonbird commented 8 months ago

I'm seeing the same issue here.