Skip to content

Commit c111fa0

Browse files
authored
fix: add lang="ts" to Svelte script tags using TypeScript syntax (open-webui#21001)
fix: add lang="ts" to Svelte script tags using TypeScript syntax Two Svelte components were using TypeScript type annotations (ReturnType<typeof setTimeout>) but their script tags were missing the lang="ts" attribute. This caused Vite/Svelte to parse them as plain JavaScript, resulting in parse errors. Fixed files: - src/lib/components/admin/Users/UserList.svelte - src/lib/components/channel/ChannelInfoModal/UserList.svelte
1 parent 6e18294 commit c111fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/channel/ChannelInfoModal/UserList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
33
import { WEBUI_NAME, config, user as _user, showSidebar } from '$lib/stores';
44
import { goto } from '$app/navigation';

0 commit comments

Comments
 (0)