firebase-functions
firebase-functions copied to clipboard
Repeated error while deploying function to Firebase using Nodejs
Repeated error while deploying function to Firebase using Nodejs :(
I tried many versions of firebase-tools I can only deploy before adding dependencies
const functions = require("firebase-functions"); const axios = require('axios'); const admin = require("firebase-admin");
After deploy ✔ functions: functions folder uploaded successfully i functions: updating Node.js 16 function yara1(us-central1)... Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
Functions deploy had errors with the following functions: yara1(us-central1) i functions: cleaning up build files...
Error: There was an error deploying functions
[debug] [2022-08-31T04:53:27.649Z] Building nodejs source [debug] [2022-08-31T04:53:30.473Z] Could not parse firebase-functions version '' into semver. Falling back to parseTriggers. [debug] [2022-08-31T04:50:26.948Z] Not printing URL for HTTPS function. Typically this means it didn't match a filter or we failed deployment [debug] [2022-08-31T04:50:27.706Z] Could not find image for function projects/us-central1/yara1
Any help please
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.