This repository was archived by the owner on May 10, 2021. It is now read-only.
This repository was archived by the owner on May 10, 2021. It is now read-only.
Functions fail when using Firebase Admin SDK #68
Closed
Description
Functions fail when using Firebase Admin SDK.
When I am requesting data from firestore using firebase admin SDK, I get this error:
(node:14684) Warning: protos.json not found in any of the include paths \protos,\protos
(Use node --trace-warnings ...
to show where the warning was created)
Error: ENOENT: no such file or directory, open 'protos.json'
at Object.openSync (fs.js:466:3)
at Object.readFileSync (fs.js:369:35)
Can this be fixed?
Currently the admin SDK is not usable on the functions and getServerSideProps
P.S. Locally works just fine when running next dev
but fails when running next build && next start