-
-
Notifications
You must be signed in to change notification settings - Fork 43
"Window is not an object" when having SSR enabled in Angular #2010
Copy link
Copy link
Closed
Description
Describe the bug
As the title suggests really. If you have SSR enabled, it doesn't seem to like the import. As described in your documentation
importProvidersFrom(AngularSlickgridModule.forRoot()), // <- notice!
Has any workaround been found for this or can you just not use SSR with SlickGrid?
15:41:48 [vite] (ssr) Error when evaluating SSR module /main.server.mjs: window is not defined
at eval (C:\xxx\xxx\Frontend\xxx\.angular\cache\19.2.9\xxx\vite\deps_ssr\angular-slickgrid.js:30395:1)
Reproduction
Just enabled SSR and import AngularSlickGridModule
Which Framework are you using?
Angular
Environment Info
| Executable | Version |
| ------------------- | ------- |
| (framework used) | ^19.2.0 |
| Slickgrid-Universal | ^9.2.0 |
| TypeScript | ~5.7.2 |Validations
- Follow our Code of Conduct
- Read the Wikis.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels