Skip to content

Generate bindings before the dev server starts - #155

Merged
vitramir merged 1 commit into
mainfrom
generate-bindings-for-dev
Aug 26, 2026
Merged

vitramir merged 1 commit into
mainfrom
generate-bindings-for-dev

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

Follow-up to #153. With src/gen untracked, a tree that has never generated has no bindings — a fresh clone, or one where a branch switch removed the previously tracked copies — and both dev paths fail on the first import Vite meets:

[plugin:vite:import-analysis] Failed to resolve import "@/gen/agynio/api/egress/v1/egress_pb" from "src/lib/egressRules.ts"

The Dockerfile and CI both run npm run generate already. This adds it to the two paths that did not: the devspace dev container (after npm ci, where buf is available from @bufbuild/buf) and npm run dev via predev.

src/gen stopped being tracked in #153. A tree that has never generated --
a fresh clone, or one whose branch switch removed the old tracked copies
-- has nothing for devspace to sync and nothing to regenerate it, so Vite
fails on the first import it meets. The Dockerfile and CI already
generate; the two dev paths did not.
@vitramir
vitramir merged commit e2c2927 into main Aug 26, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant