Cuando intento implementar mi proyecto usando firebase deploy. Provoco un error de implementación.

Mi función en la nube

const function = require("firebase-functions");

exports.hello = function.region("asia-east2").https.onRequest((req, 
res) => {
const message = req.query.message || req.body.message || "Hello 
World!";
res.status(200).send(message);
});

Error:

protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
status: {
code: 3
message: "Build failed: Build error details not available. Please check the logs at https://console.cloud.google.com/logs/viewer?project=cirrusly-d811c&advancedFilter=resource.type%3Dbuild%0Aresource.labels.build_id%3D8485e789-078b-4499-bf57-f1905d38c1c3%0AlogName%3Dprojects%2Fcirrusly-d811c%2Flogs%2Fcloudbuild"
}
authenticationInfo: {1}
serviceName: "cloudfunctions.googleapis.com"
methodName: "google.cloud.functions.v1.CloudFunctionsService.CreateFunction"
resourceName: "projects/cirrusly-d811c/locations/asia-east2/functions/hello"
}

Mis registros

Deployment error.
Build failed: Build error details not available. Please check the logs at https://console.cloud.google.com/logs/viewer?project=cirrusly-d811c&advancedFilter=resource.type%3Dbuild%0Aresource.labels.build_id%3D3bf8b169-4ea1-4aaa-84c9-ff01e67e7e33%0AlogName%3Dprojects%2Fcirrusly-d811c%2Flogs%2Fcloudbuild
0
Qandeel Haider 11 feb. 2021 a las 14:27

1 respuesta

La mejor respuesta

Utilice la versión estable de node.js v14.15.5. Eso funcionó para mí.

1
Qandeel Haider 12 feb. 2021 a las 14:21