sibiraj-s / svelte-tiptap

Svelte components for tiptap v2
https://sibiraj-s.github.io/svelte-tiptap/
MIT License
229 stars 19 forks source link

Svelte 5 support #57

Open akkie opened 3 days ago

akkie commented 3 days ago

Hi,

is there a plan to support Svelte 5 in the near future? I have tried to get the component to work with Svelte 5 and the component API compatibility enabled for version 4, but there are issues:

svelte-tiptap.js?v=9f70de98:116 Uncaught (in promise) TypeError: this.component.$set is not a function
    at SvelteRenderer.updateProps (svelte-tiptap.js?v=9f70de98:116:20)
    at updateProps (svelte-tiptap.js?v=9f70de98:193:21)
    at SvelteNodeView.update (svelte-tiptap.js?v=9f70de98:216:5)
    at CustomNodeViewDesc.update (chunk-EAHXO4A3.js?v=9f70de98:1429:30)
    at ViewTreeUpdater.updateNextNode (chunk-EAHXO4A3.js?v=9f70de98:1709:29)
    at chunk-EAHXO4A3.js?v=9f70de98:1241:24
    at iterDeco (chunk-EAHXO4A3.js?v=9f70de98:1845:7)
    at _NodeViewDesc.updateChildren (chunk-EAHXO4A3.js?v=9f70de98:1230:5)
    at _NodeViewDesc.updateInner (chunk-EAHXO4A3.js?v=9f70de98:1305:12)
    at _NodeViewDesc.update (chunk-EAHXO4A3.js?v=9f70de98:1297:10)

I think the biggest issue is that components are no longer classes in Svelte 5: https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes

sibiraj-s commented 2 days ago

Waiting for svelte 5 stable to be released.