googleapis / googleapis/google-cloud-node

Compiling Electron leads to firestore breaking due to grpc issues.

Open
#7,809 4 comments 0 reactions 0 assignees View on GitHub
electron library: google-cloud-node-core type: feature request web
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

Hey there! I am currently developing a desktop application using electron that is able to run as an admin client for our managers at work. I've run into an issue with using firebase-admin where when electron is in dev mode it works fine, but when compiled into an exe format it breaks and the error it has is saying that I need to "pass auth instance to grpc-fallback-client" and its coming from `new GrpcClient` looking further into the code about how this is made its a google-gax client.

Not sure if this is the correct area to put this but I've tried other areas and found nothing. The only similar issue I have seen is googleapis/google-cloud-node-core#445

#### Environment details

- OS: Windows
- Node.js version: 8.16.1
- npm version: 6.4.1
- `google-gax` version: 1.3.0

#### Steps to reproduce
(very custom way to hit this and I don't really know how to walk someone through getting to this exact error)
1. Have an Electron app that you can compile to exe
2. inside the main.js or type script file add an admin client from `firebase-admin`
3. Authenticate your admin client
4. Try and pull a collection from firestore

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.