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

[Angular] ReferenceError: document is not defined #407

Open
maxtanchangyong opened this issue Feb 8, 2024 · 1 comment
Open

[Angular] ReferenceError: document is not defined #407

maxtanchangyong opened this issue Feb 8, 2024 · 1 comment

Comments

@maxtanchangyong
Copy link

No description provided.

@mercuriousreign
Copy link

Got the same problem here:

Application bundle generation complete. [0.157 seconds]

Page reload sent to client(s).
ReferenceError: document is not defined
    at eval (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:593:38)
    at eval (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:634:115)
    at k.drag (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:636:8)
    at y (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:637:6)
    at main (/home/username/workfolder/afolder/projectname/src/app/products/products.component.ts:71:19)
    at callHookInternal (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16032:10)
    at callHook (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16047:7)
    at callHooks (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16021:9)
    at executeInitAndCheckHooks (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:15990:5)
    at refreshView (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:20947:11)
ReferenceError: document is not defined
    at eval (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:593:38)
    at eval (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:634:115)
    at k.drag (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:636:8)
    at y (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/keen-slider.js:637:6)
    at main (/home/username/workfolder/afolder/projectname/src/app/products/products.component.ts:72:28)
    at callHookInternal (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16032:10)
    at callHook (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16047:7)
    at callHooks (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:16021:9)
    at executeInitAndCheckHooks (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:15990:5)
    at refreshView (/home/username/workfolder/afolder/projectname/.angular/cache/18.1.3/vite/deps_ssr/chunk-3PQRU26X.js:20947:11)

Angular CLI: 18.1.3
Node: 18.19.1
Package Manager: npm 10.2.4

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

2 participants