Hydrogen Storefront DemoStore Wrangler Publish Error 10021 (Window is not defined)

I’m trying to wrangler publish my hydrogen storefront and i get the “window” is not defined error. I successfully deployed almost the same code last week, have there been any changes recently? (all window uses are in .client.jsx files)

Not aware. Have you updated Wrangler to the most recent version?