-
Notifications
You must be signed in to change notification settings - Fork 928
Firestore fails to load protobuf file #303
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
Comments
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
I have the same isssue when I tries to use take(1) query for my Serverside Rendering App (angular universal), I try to reinstall but it still the same problem. Don't know what to do |
I ran into this problem because:
I fixed it after finding it in Node docs on https://cloud.google.com/firestore/docs/quickstart
|
@dzjin the problem is specifically with the I used the former because I wanted to test out client behavior around authenticating with custom tokens and then making queries on data to test permission rules. I had to run the test in a browser instead of in a node console due to this issue. |
I have a question: if I'm using firestore on angular but it is SSR (universal), I'm using firestore for client or server ? |
@hiepxanh that'd depend on where the code will run, so I think you'll need to import two different projects for firebase: use |
oh my god, how can I put this is really a serious problem if you have a production app |
Same problem with my code also. In my case nodejs service needs to be client. |
thanks god, good to know you are fixing this I love this @jshcrowthe |
same problem here using Firebase SDK version: 4.6.2 and firestore 4.6.1 |
look like he still does not finish that fix |
Firestore (4.6.1) 2017-11-26T14:28:26.397Z: INTERNAL UNHANDLED ERROR: Error: Failed to fetch file node_modules/protobufjs/dist/protobuf.js:5164:30 |
Im still experiencing this, with some queries (others work) "firebase": "^4.7.0", I am doing a WHERE db.collection('orders') |
Describe your environment
Describe the problem
protobufjs.loadProtoFile
for'google/firestore/v1beta1/firestore.proto'
always fails due to this file missing in the published versions (tested with 4.6.0 and 4.6.1).Steps to reproduce:
I'm able to reproduce consistently with this code in a fresh repo after running
yarn add firebase
:This causes the following:
Attempts to make requests after this fail with:
Specifically it looks like https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/platform_node/load_protos.ts#L46-L50 is trying to load a file that would be in
/Users/justin/test/node_modules/@firebase/firestore/dist/cjs/src/protos
for example but this directory doesn't exist, though it does here: https://github.com/firebase/firebase-js-sdk/tree/master/packages/firestore/src. The onlyprotos
directory I can find is here:The text was updated successfully, but these errors were encountered: