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

Install fails with error message #23

Open
sebastianbenz opened this issue Apr 14, 2021 · 4 comments
Open

Install fails with error message #23

sebastianbenz opened this issue Apr 14, 2021 · 4 comments

Comments

@sebastianbenz
Copy link
Collaborator

This might be the expected behavior, but I thought I'd document this here:

Need to install the following packages:
  @cloudflare/wrangler
Ok to proceed? (y) y
⬇️   Installing cargo-generate v0.5.0...
🔧   Creating project called `my-worker`...
✨   Done! New project created /Users/sbenz/Projects/my-worker
🕵️  You can find your zone_id in the right sidebar of a zone's overview tab at https://dash.cloudflare.com
🕵️  You can find your account_id in the right sidebar of your account's Workers page
🕵️  You will need to update the following fields in the created wrangler.toml file before continuing:
- account_id
Error: values must be emitted before tables
npm ERR! code 1
npm ERR! path /Users/sbenz/Projects
npm ERR! command failed
npm ERR! command sh -c wrangler "generate" "my-worker" "https://github.com/ampproject/cloudflare-optimizer"

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sbenz/.npm/_logs/2021-04-14T10_03_16_967Z-debug.log
@samouri
Copy link
Member

samouri commented Apr 15, 2021

What command did you run that generated this output?

@sebastianbenz
Copy link
Collaborator Author

npx @cloudflare/wrangler generate my-worker https://github.com/ampproject/cloudflare-amp-optimizer

sorry, should've included that.

@samouri
Copy link
Member

samouri commented Apr 15, 2021

Strange, that same command works for me:

Screen Shot 2021-04-15 at 10 48 08 AM

This seems like a wrangler bug that could be specific to your setup

@sebastianbenz
Copy link
Collaborator Author

I still get the error (OSX, latest wrangler). Seems to be related to how TOML serialises tables. I don't think it's something that we can fix on our side.

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

No branches or pull requests

2 participants