-
Notifications
You must be signed in to change notification settings - Fork 53
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
makeDocumentSnapshot: TypeError: firestoreService.snapshot_ is not a function #87
makeDocumentSnapshot: TypeError: firestoreService.snapshot_ is not a function #87
Comments
First of, apologies for the very delayed response to this - this repo was unmaintained for a bit, but we are trying to bring it back to life. It looks like the root cause here is that we rely on snapshot_ https://github.com/googleapis/nodejs-firestore/blob/master/dev/src/index.ts#L825, which is private. I'm going to chat with my team about how we should fix this, and try to rework this to use public methods. |
Any updates on this issue? |
Maybe @TheIronDev can help as he is the most recent contributors? |
I can certainly take a look. Giving a heads up, it might be a minute while I sort through previous history. |
Do either of you have a repo that can reproduce this? I attempted for a while this morning but was not able to reproduce. Might be due to my node version + installed modules. |
@TheIronDev I do not. I reported this a couple years ago. But it seems like |
I've made a small repro : https://github.com/HugoGresse/84-fb-functions-makesnapshot-repro |
@HugoGresse - It wasn't a PEBKAC issue until recently :) Digging deeper, it looks like this issue was introduced in googleapis/nodejs-firestore#1570, when a bunch of However, I believe this makes most of the overloads accessible, with the exception of the first signature that does contain the I'll try to open up a cl to change the |
@TheIronDev Good find. I think when I initially reported it I was working with the |
This commit removes the @internal annotation from snapshot_, and fixes firebase/firebase-functions-test#87. `snapshot_` is currently referenced [here](https://github.com/firebase/firebase-functions-test/blob/master/src/providers/firestore.ts#L99). [More context here]( firebase/firebase-functions-test#87) I'm happy to work through better alternatives too.
This commit removes the @internal annotation from snapshot_, and fixes firebase/firebase-functions-test#87. `snapshot_` is currently referenced [here](https://github.com/firebase/firebase-functions-test/blob/master/src/providers/firestore.ts#L99). [More context here]( firebase/firebase-functions-test#87) I'm happy to work through better alternatives too.
This commit removes the @internal annotation from snapshot_, and fixes firebase/firebase-functions-test#87. `snapshot_` is currently referenced [here](https://github.com/firebase/firebase-functions-test/blob/master/src/providers/firestore.ts#L99). [More context here]( firebase/firebase-functions-test#87) I'm happy to work through better alternatives too.
This commit removes the @internal annotation from snapshot_, and fixes firebase/firebase-functions-test#87. `snapshot_` is currently referenced [here](https://github.com/firebase/firebase-functions-test/blob/master/src/providers/firestore.ts#L99). [More context here]( firebase/firebase-functions-test#87)
googleapis/nodejs-firestore#1728 got merged, which resolves this issue! 🎉 |
I get the following error when trying to use
makeDocumentSnapshot
:TypeError: firestoreService.snapshot_ is not a function
It seems that it has to do with the following line:
firebase-functions-test/src/providers/firestore.ts
Line 83 in 2574781
My code is as follows:
The text was updated successfully, but these errors were encountered: