-
Notifications
You must be signed in to change notification settings - Fork 17
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
Resolve Ember Global deprecation #546
Conversation
rmachielse
commented
Jan 17, 2022
•
edited
Loading
edited
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.
@tombruijn I was already able to avoid this deprecation in our codebase by using import Appsignal from '@appsignal/javascript';
import Ember from 'ember';
import { installErrorHandler } from '@appsignal/ember';
let appsignal = new Appsignal(...);
installErrorHandler(appsignal, Ember); But I guess it would still be nice to avoid this deprecation here? |
@tombruijn @unflxw any idea if and when you have some time to look into this? |
Hi @rmachielse! I am looking into this. We'll add a change similar to the one you implemented, so that the default argument is obtained by importing Ember, and not by accessing |
@unflxw nice, thanks for that! Does that mean this pr can be closed? |
@rmachielse Sure! I've created a separate issue #552 to track progress in fixing this. Thanks for reporting this and for the fix proposal! |
@unflxw thanks! Let me know if I can help or try out a potential fix 💪🏻 |
@rmachielse Hi again! I attempted to fix the issue with the imports in your proposed PR, but couldn't figure it out. As seen in the workaround you submitted, it's possible to We may revisit this again in the future -- #552 is still in our backlog. For the time being, we have amended the documentation on our Ember integration, so that importing Ember from Thank you so much for bringing this issue to our attention! Please let us know if you have any feedback about this decision. We'd be very interested to know if, as an Ember user, you've run into any issues derived from using the AppSignal integration in this way. |