adopted-ember-addons / ember-stripe-elements

A simple Ember wrapper for Stripe Elements
https://ember-stripe-elements.netlify.com
MIT License
19 stars 23 forks source link

Config implicit injection warning #30

Closed charlesfries closed 2 years ago

charlesfries commented 3 years ago

Seeing this deprecation warning in Ember 3.28:

DEPRECATION: A value was injected implicitly on the 'config' property of an instance of <brokers@service:stripev3::ember569>, overwriting the original value which was null. 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.

According to the stacktrace it's due to this line here: https://github.com/adopted-ember-addons/ember-stripe-elements/blob/4546886d0cb5384570c389d01780f72c71fd44fc/addon/services/stripev3.js#L42

I can submit a PR , I just don't understand what is setting config from its initial value of null.

DEBUG: -------------------------------
DEBUG: Ember                 : 3.28.6
DEBUG: Ember Data            : 3.27.1
DEBUG: Ember Model Validator : 3.10.0
DEBUG: Model Fragments       : 5.0.0-beta.2
DEBUG: -------------------------------