How do I fix WebviewWindow import path? #12235
-
Hello, I am really new to tauri and rust, I was following the multiple window guide on the tauri site and ran into a bug where
I don't really know how to fix it? function where I will be using the webview |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The const { WebviewWindow } = window.__TAURI__.webviewWindow; |
Beta Was this translation helpful? Give feedback.
The
import
syntax only work if you have a frontend bundler like vite. The vanilla JS template doesn't use one though so you'll need to replace imports with something like this