Skip to content

How do I fix WebviewWindow import path? #12235

Answered by FabianLars
Raikoa asked this question in Q&A
Discussion options

You must be logged in to vote

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

const { WebviewWindow } = window.__TAURI__.webviewWindow;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Raikoa
Comment options

Answer selected by Raikoa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants