#How to create new window with svelte

6 messages · Page 1 of 1 (latest)

heavy swallow
#

tauri v2.0 with svelte

Trying to create new window that connected to svelte file like the main window does with +page.svelte.

I found how to create new window here, but there are no info how to connect it to file (like .html or in my case .svelte) https://v2.tauri.app/reference/javascript/api/namespacewindow/#window

While trying using code from there - I have errors (second screenshot)

Generally I want new window be like child window to main, so when I close the main for example - new window (child) closes too. But that's in future, just to describe what I need from beginning

blazing yoke
heavy swallow
#

Am I need to allow creating new window somewhere? I tried all possible url, but it keep giving 404

blazing yoke
#

Don't add .html, sveltekit doesn't need it

heavy swallow
#

still the same

blazing yoke
#

you have a routes/newWindow/+page.svelte file yeah?