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

Rendering children raises syntax error? #1369

Closed
m1212e opened this issue Oct 17, 2024 · 2 comments
Closed

Rendering children raises syntax error? #1369

m1212e opened this issue Oct 17, 2024 · 2 comments

Comments

@m1212e
Copy link

m1212e commented Oct 17, 2024

Describe the bug

When I try to render children via the new @render annotation, I get the following error:

❌ Encountered error in src/routes/+layout.svelte
Unexpected character '@'

This is my layout. Using the <slot /> directive instead works fine. Also removing the houdini plugin from the vite config fixes the error.

</script lang="ts">
	let { children }: { children: Snippet } = $props();
</script>

<ParaglideJS {i18n}>
	{@render children()}
	 <!-- <slot /> -->
	<Footer />
	<LanguageSwitcher />
</ParaglideJS>

Reproduction

No response

@SeppahBaws
Copy link
Collaborator

Svelte 5 will only be supported once it releases into stable 5.0 - but you can play around with our preview release with the @canary tag on npm.

@m1212e
Copy link
Author

m1212e commented Oct 18, 2024

I see. Thought since #1300 is merged this is done. Thanks for the quick response, I'll give that a shot!

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

2 participants