Clarification on Deprecation "remove-owner-inject"

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.

In our app this would be triggered because we have some old injection initializers that inject common services (e.g. intl, store) into all components (bad practice, just haven’t got rid of them yet). If you’re not doing anything like that then i’d check addons.

Some of the weirder deprecations are often triggered by addons and usually simply upgrading them can fix it. Try searching your node_modules for inject? If this bit is referencing the specific values which triggered the deprecation it might be ember-data or fastboot related:

As an alternative to this API, you can refactor to explicitly inject fastboot on adapter,

Thanks Dan, I appreciate your help