[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooling] genkit start needs a nicer error message when running in the wrong folder #440

Open
pavelgj opened this issue Jun 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working tooling

Comments

@pavelgj
Copy link
Collaborator
pavelgj commented Jun 21, 2024

Right now if you run genkit start in a wrong directory you get an error that looks like this:

$ genkit start
/Users/pavelgj/genkit/genkit-tools/common/lib/cjs/runner/runner.js:114
                throw Error(`Unexpected runtime while starting app code: ${runtime}`);
                      ^

Error: Unexpected runtime while starting app code: undefined
    at Runner.startApp (/Users/pavelgj/genkit/genkit-tools/common/lib/cjs/runner/runner.js:114:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Command.<anonymous> (/Users/pavelgj/genkit/genkit-tools/cli/dist/commands/start.js:55:9)
    at async Command.parseAsync (/Users/pavelgj/genkit/genkit-tools/node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js:936:5)
    at async startCLI (/Users/pavelgj/genkit/genkit-tools/cli/dist/cli.js:66:5)
    at async /Users/pavelgj/genkit/genkit-tools/cli/dist/bin/genkit.js:6:5

Node.js v21.7.3

Would be great if it showed a friendlier message.

@pavelgj pavelgj added bug Something isn't working tooling labels Jun 21, 2024
@i14h i14h added this to the 0.5.5 milestone Jul 3, 2024
@cvanputt
Copy link

this confused me for hours. In firebase you cannot run genkit start from the root project folder. cd into the functions folder, run genkit init and it all works

@chrisraygill chrisraygill removed this from the 0.5.5 milestone Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tooling
Projects
None yet
Development

No branches or pull requests

5 participants