I have been struggling with this issue today, and I finally found this solution:
Ember.getOwner(this).resolveRegistration('config:environment');
See Ember - 4.6 - Ember API Documentation
This deprecation
now prevents us from using lookupFactory
, and I couldn’t get @nullnullnull’s addon to work for some reason. Anyway, hope it helps someone some day.