Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Error while using "wrangler init --site" with version 1.15.x #1850

Closed
ecerroni opened this issue Apr 14, 2021 · 4 comments · Fixed by #1857
Closed

Error while using "wrangler init --site" with version 1.15.x #1850

ecerroni opened this issue Apr 14, 2021 · 4 comments · Fixed by #1857
Labels
bug Something isn't working regression Something is broken, but works in previous releases

Comments

@ecerroni
Copy link

🐛 Bug report

Describe the bug

Error while trying to use init command

Reproduce the bug

A list of steps to reproduce the bug.

  1. npx @cloudflare/[email protected] init --site
  2. Error:
    Error: values must be emitted before tables

Expected behavior

Site initiated without errors as with version 1.14.1

Environment and versions

Fill out the following information about your environment.

  • operating system: Ubuntu 20.04
  • output of wrangler -V:
  • output of node -v: v14.15.1
  • content of wrangler.toml:
@ecerroni ecerroni added the bug Something isn't working label Apr 14, 2021
@ecerroni ecerroni changed the title Error while using Error while using "wrangler init --site" with version 15.x Apr 14, 2021
@ecerroni ecerroni changed the title Error while using "wrangler init --site" with version 15.x Error while using "wrangler init --site" with version 1.15.x Apr 14, 2021
@Electroid Electroid added the regression Something is broken, but works in previous releases label Apr 14, 2021
@Electroid
Copy link
Contributor

Thanks for quickly reporting this. It appears this may have to do with TOML serialization: https://github.com/cloudflare/wrangler/blob/c72f2b704cec9514863231bb5230a5b2a4b99259/src/settings/toml/manifest.rs#L140

We'll investigate a fix.

@xortive
Copy link
Contributor

xortive commented Apr 14, 2021

Bug is above, would be a quick fix.

@mabounassif
Copy link

mabounassif commented Apr 14, 2021

I confirm the bug happening [email protected] both 32 and 64 bit architectures.

For those who are stuck, you can revert to [email protected], create the toml file and upgrade again.

@lnikell
Copy link

lnikell commented Apr 15, 2021

Same issue

@xortive xortive mentioned this issue Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants