Josh | Fanpool
Josh | Fanpool5mo ago

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?
No description
2 Replies
ballingt
ballingt4mo ago
This sounds like a Svelte 4 vs 5 thing, $effect is a Rune. The Convex library supports Svelte 5.
Shamim Hossain
Shamim Hossain4mo ago
Hi Josh, had the same issue. Actually, you can upgrade the svelte version from 4 to 5 by updating the package.json.

Did you find this page helpful?