Convex in sveltekit application error. Kept getting $effect is not defined
I have an existing application built with sveltekit. I've gone pretty far on the frontend and I decided to use convex as my backend. But I keep getting "$effect is not defined". At some point, I cleared out all my node_modules and lock file, reinstalled and then I got an extra error, saying something was missing.
Is convex not compatible with sveltekit?
2 Replies
This sounds like a Svelte 4 vs 5 thing, $effect is a Rune. The Convex library supports Svelte 5.
Hi Josh, had the same issue. Actually, you can upgrade the svelte version from 4 to 5 by updating the package.json.