akveo / akveo/nebular

nbWindowFactory throws on server

未关闭
#1,165 0 条评论 1 个 reaction 已指派 1 人 已被 @yggg 认领 在 GitHub 查看
bug module:theme module:universal P3: minor
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

### Issue type

**I'm submitting a ...** (check one with "x")

* [x] bug report
* [] feature request

### Issue description

**Current behavior:**
nbWindowFactory throws on server

**Expected behavior:**
nbWindowFactory should check if window exists with `typeof`.
Probably return undefined on the server and make `NB_WINDOW` optional in components which need it.

**Steps to reproduce:**

**Related code:**
https://github.com/akveo/nebular/blob/67c5718acf33fee3bfe9f631dee176bd5a4cfe38/src/framework/theme/theme.module.ts#L33

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。