It seems the custom extensions are not working under Svelte5.
Im getting this error:
chunk-JM2DB5OD.js?v=9864267b:149 Uncaught Svelte error: component_api_invalid_new
Attempted to instantiate src/lib/editor/tiptap/extensions/flow/flow-node.svelte with `new Flow_node`, which is no longer valid in Svelte 5. If this component is not under your control, set the `compatibility.componentApi` compiler option to `4` to keep it working. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information
at component_api_invalid_new (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:86:19)
at Module.check_target (http://localhost:5173/node_modules/.vite/deps/chunk-U4Y73P2V.js?v=9864267b:255:5)
at new Flow_node (http://localhost:5173/src/lib/editor/tiptap/extensions/flow/flow-node.svelte?t=1730984240229:22:4)
at http://localhost:5173/node_modules/.vite/deps/chunk-U4Y73P2V.js?v=9864267b:228:26
at update_reaction (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:1616:23)
at update_effect (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:1713:21)
at create_effect (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:1021:7)
at branch (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:1154:10)
at http://localhost:5173/node_modules/.vite/deps/chunk-U4Y73P2V.js?v=9864267b:222:17
at update_reaction (http://localhost:5173/node_modules/.vite/deps/chunk-S6P5SLWU.js?v=9864267b:1616:23)
It seems the custom extensions are not working under Svelte5.
Im getting this error: