Skip to content

Commit

Permalink
fix: <Route> received an unexpected slot "default"
Browse files Browse the repository at this point in the history
  • Loading branch information
bfanger committed Dec 27, 2021
1 parent 0bcabae commit 0cf1dee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-students-report.md
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix <Route> received an unexpected slot "default"
10 changes: 6 additions & 4 deletions packages/kit/src/core/create_app/index.js
Expand Up @@ -130,11 +130,13 @@ function generate_app(manifest_data) {

while (l--) {
pyramid = `
<svelte:component this={components[${l}]} {...(props_${l} || {})}>
{#if components[${l + 1}]}
{#if components[${l + 1}]}
<svelte:component this={components[${l}]} {...(props_${l} || {})}>
${pyramid.replace(/\n/g, '\n\t\t\t\t\t')}
{/if}
</svelte:component>
</svelte:component>
{:else}
<svelte:component this={components[${l}]} {...(props_${l} || {})} />
{/if}
`
.replace(/^\t\t\t/gm, '')
.trim();
Expand Down

0 comments on commit 0cf1dee

Please sign in to comment.