Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The type of <svelte:self> seems to be any making it possible to pass any props #2291

Open
Ennoriel opened this issue Feb 16, 2024 · 0 comments
Labels
feature request New feature or request

Comments

@Ennoriel
Copy link

Describe the bug

The type of <svelte:self> seems to be any making it possible to pass any props.

Replacing svelte:self with svelte:component and importing the component itself works as expected

Reproduction

https://github.com/Ennoriel/bug-svelte-self

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
    Memory: 2.05 GB / 15.69 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.12.1 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (121.0.2277.112)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    svelte: ^4.2.7 => 4.2.11

Severity

annoyance

@dummdidumm dummdidumm transferred this issue from sveltejs/svelte Feb 16, 2024
@dummdidumm dummdidumm added the feature request New feature or request label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants