From 911df958e78d2dab9823dfa7d7e5c9824fc2d565 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Sun, 22 Mar 2026 13:18:41 -0400 Subject: [PATCH] fix(cli): add Svelte 5 event delegation guidance and safe push to raw-app skill (#8466) - Add documentation about the $.delegated runtime error that occurs when the Svelte runtime version in node_modules doesn't match the compiler version used by wmill sync push. - Change the push command in CLI reference to use --extra-includes for targeted pushes instead of blanket wmill sync push. Co-authored-by: Claude Opus 4.6 (1M context) --- cli/src/guidance/skills.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cli/src/guidance/skills.ts b/cli/src/guidance/skills.ts index d4fec7adcf..3101059ac9 100644 --- a/cli/src/guidance/skills.ts +++ b/cli/src/guidance/skills.ts @@ -4602,9 +4602,18 @@ Tell the user they can run these commands (do NOT run them yourself): | \`wmill app dev\` | Start dev server with live reload | | \`wmill app generate-agents\` | Refresh AGENTS.md and DATATABLES.md | | \`wmill app generate-locks\` | Generate lock files for backend runnables | -| \`wmill sync push\` | Deploy app to Windmill | +| \`wmill sync push --extra-includes "f//.raw_app/**" --yes\` | Deploy this specific raw app to Windmill (never do a blanket \`wmill sync push\`) | | \`wmill sync pull\` | Pull latest from Windmill | +## Svelte 5 Event Handling + +When building Svelte 5 raw apps, be aware of event delegation: + +- The Svelte runtime version in \`node_modules/svelte\` **must match** the compiler version used by \`wmill sync push\`. If you get \`$.delegated is undefined\` errors at runtime, run \`npm install svelte@latest\` in the raw app folder and re-push. +- \`onclick\` on \`
\`, \`\`, and other non-interactive elements uses Svelte's event delegation system. If the runtime doesn't support it, you'll get errors. +- \`onclick\` on \`