Skip to content

Error "Invalid value used in weak set" in all style tags of svelte files #16841

@martinmunillas

Description

@martinmunillas

Describe the bug

In all svelte files in the opening style tag we are getting the error "Invalid value used in weak set"

Reproduction

I will try to create a minimum reproducible environment.

Logs

Invalid value used in weak set svelte(style)

System Info

  System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 99.81 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v22.15.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
    bun: 1.0.0 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 119.1.60.118
    Chrome: 140.0.7339.187
    Safari: 18.4
  npmPackages:
    svelte: ^5.38.3 => 5.38.3 

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions