-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
If you run it as debugging, yarn tauri dev, there will be two windows with the correct content:

If you compile it into a release and run it as, you will have two windows with the same content:

Reproduction
I created a special project to demonstrate this problem, it has minimal changes from the template:
https://github.com/Ales999/tmultiwin/tree/main
- Change
src-tauri/tauri.conf.json:
"app": {
"windows": [
{
"label": "main",
"title": "Primary Window",
"width": 800,
"height": 600
},
{
"label": "tasks",
"title": "Secondary Window",
"width": 800,
"height": 600,
"url": "tasks.html"
}
],- Create file
src/Tasks.tsx:
export default function Tasks() {
return (
<div>
This is the secodary window of our application
</div>
);
}- Create file
src/second.tsx:
import React from "react";
import ReactDOM from "react-dom/client";
import Tasks from "./Tasks";
ReactDOM.createRoot(document.getElementById("tasksroot") as HTMLElement).render(
<React.StrictMode>
<Tasks />
</React.StrictMode>,
);- And create
./tasks.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + React + Typescript</title>
</head>
<body>
<div id="tasksroot"></div>
<script type="module" src="/src/second.tsx"></script>
</body>
</html>Expected behavior
No response
Full tauri info output
C:\Devs\RustDev\tmultiwin>yarn tauri info
yarn run v1.22.22
$ tauri info
[✔] Environment
- OS: Windows 10.0.26200 x86_64 (X64)
✔ WebView2: 144.0.3719.104
✔ MSVC: Visual Studio Professional 2022
✔ rustc: 1.93.0 (254b59607 2026-01-19)
✔ cargo: 1.93.0 (083ac5135 2025-12-15)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.21.1
- yarn: 1.22.22
- npm: 11.8.0
- bun: 1.2.13
- deno: deno 1.44.2
[-] Packages
- tauri 🦀: 2.10.2
- tauri-build 🦀: 2.5.5
- wry 🦀: 0.54.1
- tao 🦀: 0.34.5
- tauri-cli 🦀: 2.9.6 (outdated, latest: 2.10.0)
- @tauri-apps/api ⱼₛ: 2.10.1
- @tauri-apps/cli ⱼₛ: 2.10.0
[-] Plugins
- tauri-plugin-opener 🦀: 2.5.3
- @tauri-apps/plugin-opener ⱼₛ: 2.5.3
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Done in 9.19s.
C:\Devs\RustDev\tmultiwin>
Stack trace
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug