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

πŸ› BUG: ✘ [ERROR] This command cannot be run in a non-interactive context #4263

Closed
bigxalx opened this issue Oct 23, 2023 · 3 comments Β· Fixed by #6569
Closed

πŸ› BUG: ✘ [ERROR] This command cannot be run in a non-interactive context #4263

bigxalx opened this issue Oct 23, 2023 · 3 comments Β· Fixed by #6569
Assignees
Labels
bug Something that isn't working c3 Relating to C3 (create-cloudflare) package

Comments

@bigxalx
Copy link

bigxalx commented Oct 23, 2023

Which Cloudflare product(s) does this pertain to?

C3

What version(s) of the tool(s) are you using?

^3.0.0

What version of Node are you using?

v18.18.2

What operating system are you using?

Mac

Describe the Bug

I tried following the Getting Started Tutorial: https://developers.cloudflare.com/workers/get-started/guide/

When i run npm create cloudflare@latest I choose a directory, choose "Hello World" Worker, and choose Typescript "yes".
The script fails with

✘ [ERROR] This command cannot be run in a non-interactive context
⛅️ wrangler 3.14.0

Total Upload: 0.19 KiB / gzip: 0.16 KiB
β–² [WARNING] You need to register a workers.dev subdomain before publishing to workers.dev

? Would you like to register a workers.dev subdomain now?
πŸ€– Using default value in non-interactive context: yes

✘ [ERROR] This command cannot be run in a non-interactive context

If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@bigxalx bigxalx added the bug Something that isn't working label Oct 23, 2023
@dario-piotrowicz
Copy link
Member

dario-piotrowicz commented Oct 23, 2023

@bigxalx thanks for the issue πŸ™‚

This is something we've already noticed and know we need to fix (it does need changes both in wrangler and C3 unfortunately) sorry for the inconvenience πŸ™‡

In the meantime to get C3 to work for you, you'll need to set up your workers.dev subdomain, you can do that by manually deploying your worker via wrangler (by running npx wrangler deploy inside the worker's directory), that should have the proper interactive prompt and let you create the subdomain.

Alternatively you can just deploy a worker via the Cloudflare dashboard and that should set up your subdomain automatically for you.


Related to: #4187

@dario-piotrowicz dario-piotrowicz added the c3 Relating to C3 (create-cloudflare) package label Oct 23, 2023
@dario-piotrowicz dario-piotrowicz self-assigned this Jun 3, 2024
@dario-piotrowicz
Copy link
Member

Note to self: check if this issue has already been addressed, if not, understand what work needs to be done and on which side (wrangler or c3)

@michaelparkadze
Copy link

@dario-piotrowicz as of today this issue is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working c3 Relating to C3 (create-cloudflare) package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants