-
Notifications
You must be signed in to change notification settings - Fork 179
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
getStripePayments -> ERROR FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore #614
Comments
A console.log of the app instance in shop.service.ts
|
package.json
|
I'm having this same issue trying to use this SDK in a react app! |
did you ever figure this out? running into same problem. |
Not really, just implemented it directly.
…On Tue, Apr 9, 2024 at 4:04 AM connorbrc ***@***.***> wrote:
did you ever figure this out? running into same problem.
—
Reply to this email directly, view it on GitHub
<#614 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGIJRULK4NFXGJAB7GKHST3Y4M5DJAVCNFSM6AAAAABEHIFZG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTHE2TIMBYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have the same issue! Perhaps it's a Node JS thing? |
Same issue using angular-fire. Anyone figure this out yet? |
I am having the same issue. How did you overcome this issue? Is there an alternative to that? |
Not a great solution but I ended going into the node modules and fixing it myself. All is working now but not sure I want something this flaky especially when dealing with payments. May be better to ditch the whole extension and implement stripe from scratch unfortunately. |
I dunno if this has been said, but it works well with |
This PR helped me. #645 |
Issue with implementation of getStripePayments:
Angular 17 standalone app (no module.ts, the new app.config.ts) with Server Side Rendering enabled
Firebase
Stripe
The problem is:
Console Error
ERROR FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore
Description of issue:
I am trying to implement this extension. I am creating accounts using firebase and it's google authentication provider.
I have implemented my auth service that works through firebase.
I created a shop service that I wish to use to create a subscription.
Each time I try any sort of approach to connect to Firestore and get the collections I get the error above.
I also implemented the webhook from stripe and the restricted API. This seems to work partially. When I look in Firestore DB I only see the new products I create copied over.
When I create a new user it does not create a "customer" with the session UID, as I expect although I don't know if this is an issue or it's because I am not getting to that point to trigger those cloud functions.
This is my app.config.ts
To Reproduce
This is my AuthenticationService
This is my ShopService where the error occurs, it is the same for any request that involves getStripePayments
Expected behavior
Get a some form of result from firestore.
Actual result
Error in console, does not seem to be configuring the instance correctly.
Additional context
First time implementing in this standalone mode of angular, might be implementing something wrong.
The text was updated successfully, but these errors were encountered: