Skip to content

Running official Sentry SDK for ember breaks build #642

@oscarni

Description

@oscarni

My ember app is running embroider 0.33.0. Works fine without Sentry, but as soon as I add Sentry according to their 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. https://github.com/getsentry/sentry-javascript/blob/8f66ed831e82fdbf4d05a9f3e9dfd6f54e28f96c/packages/ember/addon/index.ts#L15

Not sure if it's an embroider issue, Sentry issue or if ember-get-config is not compatible with embroider.

Edit: Realized this happens in fastboot. Works fine when visiting ?fastboot=false.

Metadata

Metadata

Assignees

No one assigned

    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