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

Crash: inquirer.prompt is not a function #6612

Closed
twelvemo opened this issue Nov 1, 2024 · 0 comments · Fixed by #6613
Closed

Crash: inquirer.prompt is not a function #6612

twelvemo opened this issue Nov 1, 2024 · 0 comments · Fixed by #6613
Assignees

Comments

@twelvemo
Copy link
Collaborator

twelvemo commented Nov 1, 2024

Crash report

Error message

TypeError: inquirer.prompt is not a function
    at userPrompt (file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:193198:21)
    at async DeployCommand.isAllowedToRun (file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:433698:28)
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:433518:21
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:433311:20
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:915518:26
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:915686:33
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:433311:20
    at async GardenCli.run (file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:915684:32)
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:915843:29
    at async file:///Users/anna/Library/Application%20Support/io.garden.garden/1730379796-JKx2u0O.r/rollup/garden.mjs:433311:20

What did you do?

garden deploy --env prod

Where prod is an environment marked as production and therefore prompts for confirmation. The prompt fails with above error.

Your environment

  • OS: macOS
  • How I'm running Kubernetes: EKS
  • Garden version: 0.13.43

Frequency

It is reproducable.

Workaround

Remove the production flag from the environment. However this removes the added layer of security by asking for confirmation.

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

Successfully merging a pull request may close this issue.

2 participants