-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Deprecation registerPlugin in Ember 3.28 #4015
Comments
Depreciation warning appears from 6.13.0, maybe because of this : #3962 I Have more. The sentry object is mandatory in the config. I didn't specified it. // ember-cli-build.js
ENV['@sentry/ember'] = {
disableInstrumentComponents: true,
disablePerformance: true,
disableRunloopPerformance: true,
// Mandatory
sentry: {},
}; You need to explain that in doc. When building a production build without the sentry object, app doesn't start :
Here is my app docker build for production if you want to test the case (https required in local because of service worker) : registry.gitlab.com/fritzy/front/fz-front-simulator/production:0.26.2 |
As noted in #4015, a registerPlugin deprecation is now caused by @sentry/ember because of the Ember version upgrade. As mentioned here, https://github.com/emberjs/ember.js/pull/19429\#issuecomment-786403885 updating htmlbars should fix this.
@oliverlj thanks for letting us know 👍 , I've checked the deprecation and am putting a PR to fix it. For your second question about the |
@k-fish thanks for the fix. I will try. I have setup Sentry.init in my app : https://gitlab.com/fritzy/front/fz-front-simulator/-/blob/develop/app/app.ts Now, I have move all property to environnement : https://gitlab.com/fritzy/front/fz-front-simulator/-/blob/develop/config/addons.js If I move sentry object to app, error will pop |
As noted in #4015, a registerPlugin deprecation is now caused by @sentry/ember because of the Ember version upgrade. As mentioned here, https://github.com/emberjs/ember.js/pull/19429\#issuecomment-786403885 updating htmlbars should fix this.
@k-fish I'm hitting the same issue as well! I followed https://docs.sentry.io/platforms/javascript/guides/ember/#configure and i installed the package with:
And then I added the init to the app/app.js, this is my app file:
when I build my production app
|
@eredi93 as mentioned above, try adding |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
on ember serve command after installing the addon
The text was updated successfully, but these errors were encountered: