zero-to-app-universal-translator
zero-to-app-universal-translator copied to clipboard
Code from the talk entitled Zero to App: Live coding a universal translator
I have refacted the functions anyway so it only takes if I point to your Web Services, so it should be something related to the bank. Already got this error?...
Error: Cannot find module '/user_code/service-account-credentials.json' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at createAuthClientPromise (/user_code/node_modules/@google-cloud/speech/node_modules/google-auto-auth/index.js:57:16) at Auth.getAuthClient (/user_code/node_modules/@google-cloud/speech/node_modules/google-auto-auth/index.js:43:32) at /user_code/node_modules/@google-cloud/speech/node_modules/google-gax/lib/grpc.js:116:5 at GrpcClient._getCredentials (/user_code/node_modules/@google-cloud/speech/node_modules/google-gax/lib/grpc.js:115:10) at GrpcClient.createStub...
Updated Firebase class names to the latest SDK by removing the 'FIR' prefix.
A couple of fixes that were necessary to get the project working: 1. Fix typo: `credentails` --> `credentials` 2. Replace hardcoded bucket with value from `functions.config`