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

Breaks if serving separately from build command

オープン
#331 コメント 1 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。