So, I can never deploy the function it always fails
const { SecretManagerServiceClient } = require('@google-cloud/secret-manager');
I add this to the top and I read I also need to add this to the package.json
{
"name": "functions",
"description": "Firebase Custom Cloud Functions",
"engines": {
"node": "18"
},
"main": "index.js",
"dependencies": {
"firebase-admin": "^11.8.0",
"firebase-functions": "^4.3.1",
"@google-cloud/secret-manager": "^2.58.0"
},
"private": true
}
This should work right? or is the format wrong?