Skip to content

Weird behavior while logging blank exports (Svelte) #87

@012e

Description

@012e

Reproduce

  1. Create a project normally
  2. Create any route
bud new controller hello:/ index show
  1. bud run
  2. Add console.log(hellos); in the script tag (index.svelte)
  3. Go to http://127.0.0.1:3000/ and we will see an error message. For the first time:
gob: bad data: field numbers out of bounds
  • Reload. For the second time:

image

  • What the terminal looks like:

image

  • More details:

    • The error message varies between reloads
    • Remove console.log(hellos); doesn't fix the problem unless I bud run again
  • OS: Arch linux

  • Go: v1.18.2

  • Node: v14.19.3

  • bud: 0.1.4

Edit: app made with bud build works normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions