Code Monkey home page Code Monkey logo

Comments (4)

vladucu avatar vladucu commented on June 15, 2024

@arthur5005 sorry for the delay...I see what you mean and will consider something like this if more people ask for it.
As a work-around for now, extending the service in your app and export as a different name should do it I think.

// app/services/my-stripe.js
export { default } from 'ember-cli-stripe/services/stripe';

// Using 
myStripe: Ember.inject.service()

from ember-cli-stripe.

arthur5005 avatar arthur5005 commented on June 15, 2024

I think you mean to say that I should import and use ember-stripe-service under a different name.

I'm not exactly sure your workaround works tbh, the problem I was having was that ember-cli-stripe was accidentally importing ember-stripe-service as the service to use internally.

With the exact same name in the project:

stripe: Ember.inject.service()

is ambiguous, remember: components & services are not namespaced or free of collisions from external actors inside your addon.

from ember-cli-stripe.

vladucu avatar vladucu commented on June 15, 2024

@arthur5005 thanks, makes sense!
I don't really think we considered other similar addons when we named this service

from ember-cli-stripe.

slateb avatar slateb commented on June 15, 2024

@arthur5005 were you able to get the 2 addons working together?

from ember-cli-stripe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.