Description
Version: Deno 2.1.1
<script lang="ts">
const { color }: { color: string | null } = $props();
</script>
<div
style="background-color: {color || 'blueviolet'};"
>
</div>
deno fmt --unstable-component
Error formatting: C:\temp\deno-init\test.svelte
syntax error at line 6, col 28: expect token `<ident>`, but found `{`
Checked 4 files
Activity
janosh commentedon Mar 6, 2025
also seeing this in janosh/svelte-bricks@a8f9484 (CI run). is there a workaround (besides avoiding dynamic styles)?
sylc commentedon Mar 8, 2025
My current workaround is to disable the line with
deno-fmt-ignore
eg:ignore deno fmt bug denoland/deno#26999
Type `children` `Snippet` params (#41)
Merge branch 'main' into fix-denolandgh-26999