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';
│ ^
╵ ;
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:fix/chatcontrols-module-lang-ts📝 Commits (1)
6ca2f73fix: 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 inChatControls.svelteuses TypeScript syntax but is missinglang="ts", causing esbuild to fail duringvite devdependency scanning: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.