Skip to content

Fix Ember Global deprecation #552

Description

@unflxw

From #546:

DEPRECATION: Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead. [deprecation id: ember-global] See https://deprecations.emberjs.com/v3.x/#toc_ember-global for more details.

Accessing the window.Ember global variable raises a deprecation warning in version 3.27, and it is not possible in version 4.0. Our Ember integration exposes an installErrorHandler function, which takes an Appsignal instance and an Ember instance as arguments; if no Ember instance is provided, it uses window.Ember as a default value.

As a workaround for this issue, as documented, users can manually import Ember and pass it as a second argument:

import Appsignal from '@appsignal/javascript';
import Ember from 'ember';
import { installErrorHandler } from '@appsignal/ember';

let appsignal = new Appsignal(...);

installErrorHandler(appsignal, Ember);

However, our integration should be updated to import Ember to use it as the default value for its second argument.

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

    bugConfirmed and unconfirmed bugs reported by us and customers.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions