-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Tauri does not connect to vite dev server, displays white window #13017
Comments
Can you try this? #12975 (comment) |
I'm having the same kind of issue when creating a second window via the rust api. The additional browser args did not help. |
In case it might help, I reproduced the issue on my machine with this minimal example (I tested this on another mac os machine where it works as expected) `tauri info output`
I'm not sure whether this is exactly the same issue. I can create a new one if it seems relevant. |
How about lock wry version to 0.50.3? |
It does not work when I lock my Wry version to 0.50.3. I'm using macOS |
'pnpm tauri dev' same blank window with error but it's ok when use release build. [✔] Environment [-] Plugins [-] App |
No luck on my side Something else I forgot to mention, when closing the program with a ctrl+c I get this error message :
|
The err is expected. |
I'm using |
I'm not sure about how to proceed to further investigate this, I tried downgrading to specific tauri versions, Any insights about how I could proceed are most welcome, the fact that we can't inspect the blank window (unlike the macos reports) or see any console output leaves me kind of clueless at this point |
I have the same issue after some of the recent updates. Just a white screen and I can't even invoke DevTools (F12). I've tried using custom (old) tauri info
|
@EliottGaboreau Fortunately,just your code has some wrong.😓 tauri::WebviewWindowBuilder::new(
&app_handle,
"command_window",
tauri::WebviewUrl::App("/".into()),
)
.inner_size(860.0,420.0)
.visible(true)
.title("Title")
.build()
.unwrap(); You neither define the size nor the visible, add these it works ok. |
My problem is thatI only createda window but did not createa WebView. |
I've encountered similar "white screen" issues in development, and after some debugging I found it's related to the way the Vite dev server is compiling assets on-demand when the Webview first loads. You can get a bit more visibility around this issue by setting If compiling completes, the screen will load (after some time showing the "white screen") but if it hangs or throws a fatal error during compiling you might be stuck on the white screen, I'd suggest you need to debug your asset compilation in that case. Hot tip: warming some of the assets can greatly reduce that load-time: Vite warming docs [edit] Hot tip number 2: if you're using the |
Describe the bug
localhost:1420
loads as expected, it's white but inspecting works, but the application window looks like this:The issue is that rightclicking doesn't work, the vite dev server doesn't acknowledge connection as it usually does.
Reproduction
No response
Expected behavior
The vite server to be connected to.
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: