[PR #22131] [MERGED] fix: add missing lang="ts" to ChatControls module script #49557

Closed
opened 2026-04-30 01:51:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22131
Author: @jannikstdl
Created: 3/2/2026
Status: Merged
Merged: 3/2/2026
Merged by: @tjbck

Base: devHead: fix/chatcontrols-module-lang-ts


📝 Commits (1)

  • 6ca2f73 fix: add missing lang="ts" to ChatControls module script

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/lib/components/chat/ChatControls.svelte (+1 -1)

📄 Description

The <script context="module"> block in ChatControls.svelte uses TypeScript syntax but is missing lang="ts", causing esbuild to fail during vite dev dependency scanning:

✘ [ERROR] Expected ";" but found ":"

  script:/.../src/lib/components/chat/ChatControls.svelte?id=0:2:13:
    2 │   let savedTab: 'controls' | 'files' | 'overview' = 'controls';
      │               ^
      ╵               ;

Fix: <script context="module"><script context="module" lang="ts">.

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22131 **Author:** [@jannikstdl](https://github.com/jannikstdl) **Created:** 3/2/2026 **Status:** ✅ Merged **Merged:** 3/2/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/chatcontrols-module-lang-ts` --- ### 📝 Commits (1) - [`6ca2f73`](https://github.com/open-webui/open-webui/commit/6ca2f739507e27892ec6c9b1659cebb242d7e52f) fix: add missing lang="ts" to ChatControls module script ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/ChatControls.svelte` (+1 -1) </details> ### 📄 Description The `<script context="module">` block in `ChatControls.svelte` uses TypeScript syntax but is missing `lang="ts"`, causing esbuild to fail during `vite dev` dependency scanning: ``` ✘ [ERROR] Expected ";" but found ":" script:/.../src/lib/components/chat/ChatControls.svelte?id=0:2:13: 2 │ let savedTab: 'controls' | 'files' | 'overview' = 'controls'; │ ^ ╵ ; ``` Fix: `<script context="module">` → `<script context="module" lang="ts">`. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 01:51:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#49557