Skip to content

$$ownership_validator seems to try to access selectedBoard instead of $$props.selectedBoard #15881

@00swinter

Description

@00swinter

Describe the bug

I found this bug!

Discord thread link:
https://discord.com/channels/457912077277855764/1369811176615055360

repl recreation (check out the logs):
https://svelte.dev/playground/ba3fdb13c54a41a4aed0414dc05a4f58?version=5.28.2

Reproduction

https://svelte.dev/playground/ba3fdb13c54a41a4aed0414dc05a4f58?version=5.28.2

Logs

groupName:  area_control_UP

selectedBoard:  0

state of the group read WITH selectedBoard:  true

^^^^^^this means it WORKED but at the same time it DIDNT

Error:
ReferenceError
ReferenceError: selectedBoard is not defined
    at toggleMarkerGroup (playground:output:4612:6)
    at HTMLButtonElement.on_click$1 (playground:output:4583:3)
    at HTMLBodyElement.handle_event_propagation (playground:output:3064:11)

(all happening in the same scope)

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz
    Memory: 1.36 GB / 7.60 GB
  Binaries:
    Node: 22.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (132.0.2957.115)
    Internet Explorer: 11.0.22621.3527

Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

No one assigned

    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