I am going through Ember upgrade to 4.8 and I am running into this deprecation at runtime which is not clear to me what I need to change to address it.
Looking at the link provided along with the deprecation message it seems like this would be caused when one would be using “inject” but after searching the code I am not able to clearly identify the code.
The stack trace is pretty confusing and does not give much details.
Does anyone have information on what code needs to be changed to address this issue?
Thanks
DEPRECATION: As of Ember 4.0.0, owner.inject no longer injects values into resolved instances, and calling the method has been deprecated.
Since this method no longer does anything, it is fully safe to remove this injection. As an alternative to this API,
you can refactor to explicitly inject fastboot
on adapter
, or look it up directly using the getOwner
API. [deprecation id: remove-owner-inject]
This will be removed in Ember 5.0.0. See Ember.js - Deprecations for more details.