Skip to content

Ben Svelte issue #1605

Description

@Huijiro

That took more digging than expected — the first two deploys reported "healthy" but were actually crash-looping on every real page load with Cannot find package 'valibot'. Root cause: Agentuity's build tooling generates a pruned package.json for the deployed container by statically scanning known SvelteKit file conventions (+server.ts, hooks.server.ts, $lib/server/**), and it doesn't yet scan *.remote.ts files — so valibot, only imported from those, never made it into the deployment manifest despite being correctly declared in the repo's package.json. Fixed by relocating the shared valibot schemas from auth.remote.ts into src/lib/server/auth.ts (which hooks.server.ts already imports) — a legitimate, sensible home for them regardless, and it puts the valibot import somewhere Agentuity's tracer actually sees.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions