From 0cf1dee46b997ec5a812c03e41aab548aa3b4612 Mon Sep 17 00:00:00 2001 From: Bob Fanger Date: Mon, 27 Dec 2021 13:10:10 +0100 Subject: [PATCH 1/2] fix: received an unexpected slot "default" --- .changeset/moody-students-report.md | 5 +++++ packages/kit/src/core/create_app/index.js | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changeset/moody-students-report.md diff --git a/.changeset/moody-students-report.md b/.changeset/moody-students-report.md new file mode 100644 index 000000000000..712842e0fca8 --- /dev/null +++ b/.changeset/moody-students-report.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix received an unexpected slot "default" diff --git a/packages/kit/src/core/create_app/index.js b/packages/kit/src/core/create_app/index.js index 33ad744e12b3..62d43217b29d 100644 --- a/packages/kit/src/core/create_app/index.js +++ b/packages/kit/src/core/create_app/index.js @@ -130,11 +130,13 @@ function generate_app(manifest_data) { while (l--) { pyramid = ` - - {#if components[${l + 1}]} + {#if components[${l + 1}]} + ${pyramid.replace(/\n/g, '\n\t\t\t\t\t')} - {/if} - + + {:else} + + {/if} ` .replace(/^\t\t\t/gm, '') .trim(); From a75eda89a08c54818bbf7b47f63b9c88ae6a257a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 28 Dec 2021 08:34:29 -0500 Subject: [PATCH 2/2] Update .changeset/moody-students-report.md Co-authored-by: Bjorn Lu --- .changeset/moody-students-report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/moody-students-report.md b/.changeset/moody-students-report.md index 712842e0fca8..bf70be4041de 100644 --- a/.changeset/moody-students-report.md +++ b/.changeset/moody-students-report.md @@ -2,4 +2,4 @@ '@sveltejs/kit': patch --- -fix received an unexpected slot "default" +fix ` received an unexpected slot "default"` warning