Self-closing tags (in __layout.svelte) are ruined
See original GitHub issueHi!
When I start from sveltekit-electron In __layout.svelte
construcion
<div class="dragbar" />
{#if ready}
<slot />
{/if}
<style>.foo{}</style>
is changed to
<div class="dragbar">
{#if ready}
<slot>
{/if}
<style>.foo{}</style>
</slot></div>
<slot></slot>
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Disable self-closing tag if empty #284 - GitHub
Describe the bug Hello, I think when the html tag is empty, it should use self-closing on format. When I'm writing code, sometimes...
Read more >html - Svelte: Error from Prettier when I try use self-closing tags ...
I'm a newbie in coding (I have some experience in MERN stack), but I'm new to Svelte and I'm confused about this error:...
Read more >[sveltekit] Conditional render based on user store w/ supabase ...
I'm using Supabase auth and have a user store: // Session store import { writable } from 'svelte/store' export const user = writable(false)....
Read more >Layouts – Vercel Docs
Pages can be wrapped in a layout component using the <slot> tag, which indicates where the child component should be placed within the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
According to https://github.com/sveltejs/svelte/issues/2914 this wont work anyway. So we will need to find another way.
Thanks for the report and patience! This has been fixed by an internal refactoring in f29c47d991cc8f115514d33d9d75b56ac22eed6c.