Repository navigation
fix(js/cli): declare zod as a direct dependency - #12
Closed
genkit-factory-dev[bot] wants to merge 2 commits into
Closed
genkit-factory-dev[bot] wants to merge 2 commits into
genkit-factory-dev[bot] wants to merge 2 commits into
Conversation
Requested-by: Samuel Bushi <ssbushi@google.com>
ssbushi
self-requested a review
October 21, 2026 18:32
ssbushi
approved these changes
Oct 21, 2026
ssbushi
reviewed
Oct 22, 2026
Owner
There was a problem hiding this comment.
superflous tests, not necessary if just updating package.json
Requested-by: Samuel Bushi <ssbushi@google.com>
Author
|
Addressed in
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Installing
genkit-cliglobally with pnpm (pnpm add -g genkit-cli) using its default isolatednode-linkercausesgenkit --versionand all other CLI commands to crash on startup withError: Cannot find module 'zod'. Several modules undergenkit-tools/cli/src/(includingsrc/mcp/docs.ts, which is loaded eagerly bysrc/cli.ts) importzoddirectly, butgenkit-tools/cli/package.jsonomittedzodfromdependenciesand relied on accidental hoisting from@genkit-ai/tools-commonor the monorepo root.Fix
"zod": "^3.25.67"todependenciesingenkit-tools/cli/package.jsonand updatedgenkit-tools/pnpm-lock.yamlsozodis linked directly undergenkit-cli's ownnode_modules.genkit-tools/cli/src/and confirmed they are already declared ingenkit-tools/cli/package.jsondependencies.Verification
pnpm --dir genkit-tools install --frozen-lockfile(passed)pnpm --dir genkit-tools build(passed)pnpm --dir genkit-tools/cli test(14 test suites passed, 206 tests passed)node genkit-tools/cli/dist/bin/genkit.js --version(passed, outputs1.44.1)Triage
Fixes #3
Accountable: @ssbushi
Opened by the Genkit factory (agy). A human must review and approve before merge.