vue-zoomer
vue-zoomer copied to clipboard
debounce.min.js causes "ReferenceError: window is not defined" from Vite SSG
I generate pages with [email protected]
. The process succeeds but the pages are not generated due to error.
I have tried dynamic import, but it does not work either.
ReferenceError: window is not defined
at file:///home/me/my-project/.vite-ssg-temp/main.mjs:2224:16
Points to:
// ...
}, Symbol.toStringTag, { value: "Module" }));
if (typeof global === "undefined")
var global = window;
// ...
That can be found at the beginning of debounce.min.js
.