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

Svelte 5: After next.69 the Snippets type doesn't work properly #10682

Closed
HighFunctioningSociopathSH opened this issue Mar 2, 2024 · 2 comments

Comments

@HighFunctioningSociopathSH

Describe the bug

After the next.69 update, Snippet type causes an error.

Reproduction

For example, take the simple following code where children gives an error.

<svelte:options runes />

<script lang="ts">
  import type { Snippet } from "svelte";

  type Props = {
    children: Snippet;
  };

  let { children } = $props<Props>();
</script>

<div>
    {@render children()}
</div>

The error is:
image

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
    Memory: 6.90 GB / 15.63 GB
  Binaries:
    Node: 18.14.2 - C:\Program Files\nodejs\node.EXE
    npm: 9.7.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.59)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    svelte: ^5.0.0-next.69 => 5.0.0-next.69

Severity

annoyance

@Prinzhorn
Copy link
Contributor

#10668

@dummdidumm
Copy link
Member

Make sure to update to the latest version of the vs code extension, svelte-check (if you use it) and prettier-plugin-svelte (if you use it)

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants