Skip to content

Unexpected character @ #13856

@DDuran19

Description

@DDuran19

Describe the bug

{6898B43E-7E3A-47F0-A9DE-2ED39A75FFCC}

I am getting this error Unexpected character '@'svelte(parse-error) when using @render I am not sure if this is svelte5 problem or probably my IDE, or extension? please help...

Reproduction

<script lang="ts">
	import NewOrder from './this/NewOrder.svelte';
	import { newOrderModal } from './this/stores';

	let { data, children } = $props();
	const branches = data.branches;
</script>

{#if branches && branches.length !== 0}
	<NewOrder {branches} />
{/if}
{#if children}
	{@render children()}
{/if}

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz     
    Memory: 647.48 MB / 7.83 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.52)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    svelte: ^5.1.0 => 5.1.0

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions