-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
bugSomething isn't working correctlySomething isn't working correctlydeno fmtRelated to the "deno fmt" subcommand or dprintRelated to the "deno fmt" subcommand or dprintupstreamChanges in upstream are required to solve these issuesChanges in upstream are required to solve these issues
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
rory-orennia, janosh and kleinicke
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctlydeno fmtRelated to the "deno fmt" subcommand or dprintRelated to the "deno fmt" subcommand or dprintupstreamChanges in upstream are required to solve these issuesChanges in upstream are required to solve these issues
Type
Projects
Milestone
Relationships
Development
Select code repository
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