mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
fix(guides): move {@const} out of <div> to fix Svelte 5 build error
Svelte 5 requires {@const} to be a direct child of block elements
({#snippet}, {:else}, {#each}, etc.), not inside plain HTML elements
like <div>. The guides DetailView had it inside <div class="meta">,
which broke the production build.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
97610a08f8
commit
a8da25c931
1 changed files with 1 additions and 1 deletions
|
|
@ -139,8 +139,8 @@
|
|||
</div>
|
||||
{:else}
|
||||
<!-- Guide metadata -->
|
||||
{@const catInfo = GUIDE_CATEGORIES[guide.category]}
|
||||
<div class="meta">
|
||||
{@const catInfo = GUIDE_CATEGORIES[guide.category]}
|
||||
<div class="meta-badges">
|
||||
<span class="badge {catInfo.color}">{catInfo.label}</span>
|
||||
<span class="badge bg-white/10">{DIFFICULTY_LABELS[guide.difficulty]}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue