diff --git a/.changeset/moody-students-report.md b/.changeset/moody-students-report.md new file mode 100644 index 000000000000..bf70be4041de --- /dev/null +++ b/.changeset/moody-students-report.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix ` received an unexpected slot "default"` warning 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();