Skip to content

Snippet hoisting issue #14638

@huntabyte

Description

@huntabyte

Describe the bug

With the following code:

<script>
	let abc = 'a'
</script>

{@render b()}

{#snippet a()}
	{abc}
{/snippet}

{#snippet b()}
	{@render a()}
{/snippet}

We get the following error making the app unable to build:

a is not defined

Reproduction

REPL

Logs

No response

System Info

REPL v5.10

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions