Skip to content

Playground error messages are lacking #798

Open
@benmccann

Description

@benmccann

It took me a long time to figure out what dumb thing I had done in this REPL:

https://svelte.dev/playground/hello-world?version=5.1.9#H4sIAAAAAAAAA3WQT2vDMAzFv4oqBtmoSeg1TQO7DXYZ7Lj04KVqanBsY2vdSsh3L2o71j_rTUjvPf2kAZ3uCUt835JlejUMK80aIumWzdbwDhWujaWE5ceAvAsilgaqX-tzCHk62FHhp070X7_1jslxwhKr1EYTuG5cw6YPPjK86Y5gHX0PWV5Mg-7o5MzmjROdJQaJhQVk3z7alQyq4i_JVYeMQUQjFHXjUCHTD2PJ8YtGdQf-fNkl_tXkzgECNhx_NsICHkL0IT0-za-gRZBLfYO9mdUvZK0_oU-qYjO7oV-Oe9H4FV2pAQAA

The error is simply:

Cannot read properties of undefined (reading 'name')

It would really help to have at least a filename and ideally a line/col as well since multiple files and code locations may contain the same variable name.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions