I encountered an issue while using Tauri v2. Normally, when we call APIs that require permissions, the console displays that we don't have the necessary permission (xxx).
While using WebviewWindow, I forgot to set the core:webview:allow-create-webview-window permission for the app. Unlike before, Tauri didn't inform me that I needed the core:webview:allow-create-webview-window permission to use it; instead, it threw a window not found error.
Just when I was at my wits' end, I used tauri://error and received the correct error message.
Describe the bug
I encountered an issue while using Tauri v2. Normally, when we call APIs that require permissions, the console displays that we don't have the necessary permission (xxx).
While using
WebviewWindow
, I forgot to set thecore:webview:allow-create-webview-window
permission for the app. Unlike before, Tauri didn't inform me that I needed thecore:webview:allow-create-webview-window
permission to use it; instead, it threw awindow not found
error.Just when I was at my wits' end, I used
tauri://error
and received the correct error message.Reproduction
https://github.com/Clover-You/tauri-window-permission-error
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response