Skip to content

Fastboot Issues due to jQuery dependency #39

Description

@mazondo

We're having an issue with FastBoot since this plugin relies on jQuery to read the revision version.

I've supressed the error with a custom service like this:

import RavenService from 'ember-cli-sentry/services/raven';
import computed from 'ember-computed';
import $ from 'jquery';

export default RavenService.extend({
    releaseMetaName: 'sentry:revision',
    release: computed('releaseMetaName', {
        get: function() {
          if (typeof(FastBoot) === 'undefined') {
            return $(`meta[name='${this.get('releaseMetaName')}']`).attr('content');
          }
        }
    })
});

But this basically just means that fastboot errors will have no version. Anyone have ideas on a better way to handle this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions