Svelte: <slot slot="…"> is broken

Created on 30 Sep 2020  ·  14Comments  ·  Source: sveltejs/svelte

Most helpful comment

@damianpumar Nah, its a new feature https://github.com/sveltejs/svelte/issues/2079

All 14 comments

You've got an error in your sample (as in discord). But you are right.

The compiler hangs on <slot slot="..." />

Example: https://svelte.dev/repl/29959e70103f4868a6525c0734934936?version=3.29.0

Replacing <slot slot="test" /> with <slot slot="test" name="test" /> also results in the same error.

Hi guys, I was reviewing this example in svelte's page https://svelte.dev/tutorial/named-slots and following this issue, I think the correct behaviour is throw an error, right?

Many thanks!

@damianpumar Nah, its a new feature https://github.com/sveltejs/svelte/issues/2079

@damianpumar Nah, its a new feature #2079

Someone has already started to fix it? I can help to fix this issue

I don't think anyone has started work on this @damianpumar .

Cool, I will try to fix this, in case I need help I will let you know 👍 @TheComputerM

Any updates?

Good morning guys, Yesterday I talked with @tanhauhau he helped me to discover the problem behind this issue, I'm working on solve it as soon as possible.
The problem is like a stack overflow exception inside a compiler.

Many and special thanks to @tanhauhau for him time!

Thanks!

I think this should be implemented as a new feature, continued at https://github.com/sveltejs/svelte/issues/5535

Hello @TheComputerM I fixed this issue, I will push the changes in a few minutes

Thank you very much @damianpumar !

Thank you very much @damianpumar !

Many thanks to all of you guys!, it was a pleasure. 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robnagler picture robnagler  ·  3Comments

AntoninBeaufort picture AntoninBeaufort  ·  3Comments

Rich-Harris picture Rich-Harris  ·  3Comments

bestguy picture bestguy  ·  3Comments

davidcallanan picture davidcallanan  ·  3Comments