Skip to content

Error: Service firestore is not available with Firebase 9.14.0 #468

@jeremyrajan

Description

@jeremyrajan

Bug report

  • Extension name: [e.g. firestore-stripe-payments] firestore-stripe-payments

Describe the bug

When trying to use createCheckoutSession, getting the following error:

index.esm2017.js?c270:147 Uncaught (in promise) Error: Service firestore is not available
    at Provider.getImmediate (index.esm2017.js?c270:147:1)
    at La (index.esm2017.js?98b5:17280:117)
    at new FirestoreSessionDAO (session.js?e040:106:38)
    at getOrInitSessionDAO (session.js?e040:166:1)
    at eval (session.js?e040:67:1)
    at async _createStripePayment (page.tsx?7178:54:21)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

Create checkout session

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • NextJS 13, Firebase 9.14.0

Additional context

This only happens with v0.0.6. I downgraded to 0.0.4 and it started working.

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Opened

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions