Firebase Functions deploy error, Node.js version 10
See original GitHub issueI 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:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This worked for me I ran:
firebase login:ci
then ran:
firebase deploy
@kodai3 So far, I haven’t been able to solve the problem yet.