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

Breaks if serving separately from build command

Đang mở
#331 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
157
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.