Skip to content

Running sentry with Ember embroider and fastboot breaks build #3174

Closed
@oscarni

Description

@oscarni

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/ember

Version:

5.30.0

Description

My ember app is running embroider 0.35.1 in fastboot. It works fine without Sentry or when fastboot is not enabled. But as soon as I add Sentry according to your latest official ember docs (adding InitSentryForEmber() in app.js) the build says:

Error: Assertion Failed: Missing configuration

Sentry is using ember-get-config. But it looks like the config is empty from where the sentry import is done.

const config = environmentConfig['@sentry/ember'];

Not sure if it's an embroider issue or if it's fixable here in the sentry repo. It looks like the config is not accessible from within fastboot when sentry is trying to access it. I also created an issue in the embroider repo embroider-build/embroider#642

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions