Skip to content

'Undefined Reference' when indexing a $bindable prop in dev modeΒ #15840

@jhwz

Description

@jhwz

Describe the bug

The generated code in dev mode references an undefined variable, maybe it thinks every variable in the expression has been declared with $.prop?

Reproduction

https://svelte.dev/playground/8e7f81107bbd4530a08a77ebe520a10b?version=5.28.2

Look at the JS output, compiler options must be:

  • generate: client
  • dev: true

Logs

System Info

NA

Severity

annoyance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions