question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Functions deploy error, Node.js version 10

See original GitHub issue

I was trying to deploy Node.js version 10 on Firebase functions, Then I get an error and I don’t know the details of the error. Does firebase-tools support Node.js version 10?

I currently have Node.js version 8 Function deployed and already in production.

[REQUIRED] Environment info

firebase-tools: 8.4.3

Platform: macOS version 10.15.4

[REQUIRED] Test case

package.json

"engines": {
   "node": "10"
},
"dependencies": {
  "firebase-tools": "^8.4.3",
  "firebase-functions": "^3.7.0",
  more...
}

index.js

const functions = require('firebase-functions');

exports.test = functions.https.onCall((data, context) => {
  return { status: 'success' };
});

[REQUIRED] Steps to reproduce

firebase deploy --only functions:test

[REQUIRED] Expected behavior

Success deploy.

[REQUIRED] Actual behavior

Error deploy.

i  deploying functions
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
✔  functions: required API cloudfunctions.googleapis.com is enabled
✔  functions: required API cloudbuild.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (539.65 KB) for uploading
✔  functions: functions folder uploaded successfully

i  functions: uploading functions in project: test(us-central1)
i  functions: creating Node.js 10 function test(us-central1)...
✔  scheduler: required API cloudscheduler.googleapis.com is enabled
⚠  functions[test(us-central1)]: Deployment error.
Build failed: Build error details not available.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
lamiisycommented, Jan 20, 2021

This worked for me I ran: firebase login:ci

then ran: firebase deploy

1reaction
345mlcommented, Jul 7, 2020

@kodai3 So far, I haven’t been able to solve the problem yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found