-
Notifications
You must be signed in to change notification settings - Fork 413
Closed
Description
Cloud
- Operating System version: cloud - Heroku PAAS NodeJS
- Firebase SDK version: 5.4.3
- Library version: 5.4.3
- Firebase Product: auth,storage
Local
- Operating System version: MacOS 10.11.6
- Firebase SDK version: 5.4.3
- Library version: 5.4.3
- Firebase Product: auth,storage
Problem
I am using firebase-admin with nodejs in order to authenticate users and manage the storage with firebase. Everything is working fine locally. But when i push my code to heroku and after executing npm install, my nodejs crashes directly --> see below.
PS: @google-cloud/storage is installed within firebase-admin...
app/node_modules/firebase-admin/lib/storage/storage.js:61
throw new error_1.FirebaseError({
^
Error: Failed to import the Cloud Storage client library for Node.js. Make sure to install the "@google-cloud/storage" npm package.
at new FirebaseError (/app/node_modules/firebase-admin/lib/utils/error.js:39:28)
at new Storage (/app/node_modules/firebase-admin/lib/storage/storage.js:61:19)
at /app/node_modules/firebase-admin/lib/firebase-app.js:247:20
at FirebaseApp.ensureService_ (/app/node_modules/firebase-admin/lib/firebase-app.js:307:23)
at FirebaseApp.storage (/app/node_modules/firebase-admin/lib/firebase-app.js:246:21)
at FirebaseNamespace.fn (/app/node_modules/firebase-admin/lib/firebase-namespace.js:270:42)
why should i install additionally @google-cloud/storage or firebase-admin's dependencies?
workaround
is to install @google-cloud/storage as deps for my server...
Steps to reproduce (standard execution..):
- npm install
- npm run build
- npm start (nodejs server will start)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

