adopted-ember-addons / adopted-ember-addons/ember-cli-content-security-policy

Breaks if serving separately from build command

未关闭
#331 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
157
派生
44
PR 合并指标
30 天内没有已合并 PR

描述

Build: `ember build --watch`
Serve: `ember serve --path="dist"`

Error:

```
TypeError: Cannot read property 'tests' of undefined
at [...]/node_modules/.pnpm/ember-cli-content-security-policy@2.0.3/node_modules/ember-cli-content-security-policy/index.js:127:40
```

The associated line is here: https://github.com/rwjblue/ember-cli-content-security-policy/blob/b6c3e093203acdba8b954442e49c0e91a6d25478/index.js#L127

It appears `this.app` is not available when not also running the build hooks.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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