Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy on Firebase Cloud Functions #73

Closed
coosmiyn opened this issue May 22, 2020 · 2 comments
Closed

Cannot deploy on Firebase Cloud Functions #73

coosmiyn opened this issue May 22, 2020 · 2 comments

Comments

@coosmiyn
Copy link

Hello! I am using Firebase Cloud Functions and I want to integrate it with the API, but when I try to deploy my functions, I get an error.

The only thing I've added was the

const gocardless = require("gocardless-nodejs");

and it returns an error

`Detailed stack trace: /srv/node_modules/got/dist/source/create.js:101
got.paginate = async function* (url, options) {
^

SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/srv/node_modules/got/dist/source/index.js:7:18)`

I am using:

Firebase Functions: 3.6.1
GoCardless: 1.1.2
Node: 12.13.0

@paprikati
Copy link

I believe this is a got issue - have you seen sindresorhus/got#1084 (although that suggests Node 12.13.0 should be ok)

@coosmiyn
Copy link
Author

Oh, yes, found the problem. I do have node 12.13.0 but Firebase Functions were still set to 8. Updating it to 10 solved the problem. Now I feel really stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants