I am trying to build my application for windows. It works fine on linux (compiles and runs just fine) but on windows the dev command exits with code 255 and when I try to build the app it gives me an error: "window is not defined". I am using Sveltekit for the frontend
This is the function that the error seems to originate from:
export async function authenticateWithTwitch() {
const response = await invoke('authenticate_with_twitch');
return accessTokenResponseSchema.parse(response);
}