Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks if serving separately from build command #331

Open
runspired opened this issue Aug 4, 2022 · 1 comment · May be fixed by #332
Open

Breaks if serving separately from build command #331

runspired opened this issue Aug 4, 2022 · 1 comment · May be fixed by #332

Comments

@runspired
Copy link
Contributor

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

Error:

TypeError: Cannot read property 'tests' of undefined
    at [...]/node_modules/.pnpm/[email protected]/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.

@danielraggs
Copy link

I'm also having this exact issue-- did you ever find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants