Skip to content
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

Fix deprecation warning regarding implicit injections #247

Open
mayatron opened this issue Aug 16, 2021 · 0 comments
Open

Fix deprecation warning regarding implicit injections #247

mayatron opened this issue Aug 16, 2021 · 0 comments

Comments

@mayatron
Copy link

The following deprecation warning appears on application launch, starting with Ember 3.26.0:

DEPRECATION: A value was injected implicitly on the 'emberSpinnerPrefixConfig' property of an instance of <monolith@component:ember-spinner::ember195>. Implicit injection is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator. [deprecation id: implicit-injections] See https://deprecations.emberjs.com/v3.x#toc_implicit-injections for more details.

This appears to be caused by:

export default {
name: 'ember-spinner-prefix',
initialize: function() {
let application = arguments[1] || arguments[0];
application.register('ember-spinner:main', emberSpinnerPrefix, {instantiate: false});
application.inject('component:ember-spinner', 'emberSpinnerPrefixConfig', 'ember-spinner:main');
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant