You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue outlines the process of migrating to Svelte 5.
Steps Taken
npx sv migrate svelte-5
Migration Errors
AssistantSettings.svelte
<p> cannot be a child of <select>. <select> only allows these children: <option>, <optgroup>, <#text>, <hr>, <script>, <template>.
The browser will "repair" the HTML (by moving, removing, or inserting elements), which breaks Svelte's assumptions about the structure of your components.
{#ifnChildren>0}
{@constmessageId=messages.find((m) =>m.id===id)?.children?.[childrenToRender]}
{#keymessageId}
<ChatMessage
{loading}
{messages}
{isAuthor}
{readOnly}
{model}
id={messageId}
on:retryon:voteon:continue
>
// update the slot
// remove the afterUpdate function
ToolEdit.svelte
<p> cannot be a child of <select>. <select> only allows these children: <option>, <optgroup>, <#text>, <hr>, <script>, <template>.
The browser will "repair" the HTML (by moving, removing, or inserting elements), which breaks Svelte's assumptions about the structure of your components.
Description
This issue outlines the process of migrating to Svelte 5.
Steps Taken
Migration Errors
AssistantSettings.svelte
<p>
cannot be a child of<select>
.<select>
only allows these children:<option>
,<optgroup>
,<#text>
,<hr>
,<script>
,<template>
.The browser will "repair" the HTML (by moving, removing, or inserting elements), which breaks Svelte's assumptions about the structure of your components.
Reference: Svelte Error Documentation - Node Invalid Placement
Suggestion:
I am available to work on this, feel free
Are there any integration/e2e tests I can run to check that the migration has gone smoothly?
ChatMessage.svelte
<svelte:fragment>
must be the direct child of a component.Reference: Svelte Error Documentation - Svelte Fragment Invalid Placement
Suggestion:
ToolEdit.svelte
<p>
cannot be a child of<select>
.<select>
only allows these children:<option>
,<optgroup>
,<#text>
,<hr>
,<script>
,<template>
.The browser will "repair" the HTML (by moving, removing, or inserting elements), which breaks Svelte's assumptions about the structure of your components.
Reference: Svelte Error Documentation - Node Invalid Placement
Suggestion: same as AssistantSettings.svelte
I am available to work on this topic :)
Are there any integration/e2e tests I can run to check that the migration has gone smoothly?
The text was updated successfully, but these errors were encountered: