Hi,
I’m trying to deploy to google cloud using the tutorial: https://serverless.com/framework/docs/providers/google/examples/hello-world/node/
The serverless deploy
step fails. Would you help me out with this please?
###Details:
Serverless: Packaging service...
Serverless: Compiling function "first"...
Type Error ---------------------------------------------
Object.keys(...).includes is not a function
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
TypeError: Object.keys(...).includes is not a function
at GoogleProvider.isServiceSupported (.../dev/serverless/my-service/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js:93:32)
at .../dev/serverless/my-service/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js:44:12
at GoogleProvider.request (.../dev/serverless/my-service/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js:42:12)
at GoogleDeploy.checkForExistingDeployment (.../dev/serverless/my-service/node_modules/serverless-google-cloudfunctions/deploy/lib/createDeployment.js:20:26)
at processImmediate [as _immediateCallback] (timers.js:383:17)
From previous event:
at PluginManager.invoke (.../.nvm/versions/node/v4.2.4/lib/node_modules/serverless/lib/classes/PluginManager.js:234:22)
at PluginManager.run (.../.nvm/versions/node/v4.2.4/lib/node_modules/serverless/lib/classes/PluginManager.js:253:17)
at .../.nvm/versions/node/v4.2.4/lib/node_modules/serverless/lib/Serverless.js:100:33
From previous event:
at Serverless.run (.../.nvm/versions/node/v4.2.4/lib/node_modules/serverless/lib/Serverless.js:87:74)
at .../.nvm/versions/node/v4.2.4/lib/node_modules/serverless/bin/serverless:23:50
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: darwin
Node Version: 4.2.4
Serverless Version: 1.14.0
serverless.yml (as automatically created and updated with project and credentials details)
Path to the credentials file is fine. The project name is fine too (the project id is the same as the project name on google cloud)
service: my-service
provider:
name: google
runtime: nodejs
project: first-service
credentials: ~/.gcloud/key-file-name.json
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
first:
handler: http
events:
- http: path
Points to note:
- I’ve enabled all the required APIs for my project
- Billing is enabled for my project