Giter VIP home page Giter VIP logo

Comments (3)

mittcoats avatar mittcoats commented on June 3, 2024 1

I'm running into a similar problem when I run "firebase serve"

$ firebase serve

=== Serving from '/Users/Mitt/Dev/fireship/stripe'...

✔  functions: Using node@8 from host.
i  hosting: Serving hosting files from: public
✔  hosting: Local server: http://localhost:5000
✔  functions: Emulator started at http://localhost:5001
i  functions: Watching "/Users/Mitt/Dev/fireship/stripe/functions" for Cloud Functions...
⚠  TypeError: Cannot read property 'secret' of undefined
    at Object.<anonymous> (/Users/Mitt/Dev/fireship/stripe/functions/lib/config.js:12:49)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/Mitt/Dev/fireship/stripe/functions/lib/sources.js:13:18)
    at Module._compile (module.js:653:30)
⚠  We were unable to load your functions code. (see above)
   - It appears your code is written in Typescript, which must be compiled before emulation.
   - You may be able to run "npm run build" in your functions directory to resolve this.

I've tried "npm run build", but it hasn't fixed it.

I'm still struggling to understand where this error is coming from so I know how to dig into fixing it.

from angular-firebase-stripe.

reyco1 avatar reyco1 commented on June 3, 2024

Add your Stripe API keys to credentials.json

"stripe": {
    "publishable": "foo",
    "secret": "bar",
    "clientid": "baz"
}

from angular-firebase-stripe.

mfeldman143 avatar mfeldman143 commented on June 3, 2024

was that because you were using Windows? I had the same problem but the videos suggested not to use stripe secret; instead I kept trying to use "firebase functions:config:set stripe.secret=bla bla bla"

from angular-firebase-stripe.

Related Issues (7)

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.