Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debounce.min.js causes "ReferenceError: window is not defined" from Vite SSG #37

Open
J-Sek opened this issue Sep 18, 2022 · 0 comments

Comments

@J-Sek
Copy link

J-Sek commented Sep 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant