How to create windows correctly? #11493
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Assuming the error really stems from just that code i assume it's the webview.show() line because it may be called before the window was fully created (hence the tauri://created event you may have seen in the docs). |
Beta Was this translation helpful? Give feedback.
-
I also got the same 'window not found' error.
to my capabilities json permissions fixed it for me. |
Beta Was this translation helpful? Give feedback.
Assuming the error really stems from just that code i assume it's the webview.show() line because it may be called before the window was fully created (hence the tauri://created event you may have seen in the docs).
Do you even need that line? If you don't spawn the window with
visibile: false
this shouldn't do anything anyway. If you do need it, try moving it into thetauri://created
event handler.