-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unable to deploy to GCF #5
Comments
Hey @pgoodjohn 👋 This is due to an error in the README that I've just corrected in 7f7a964; namely, - const serverless = require('serverless-gcf')
+ const { serverless } = require('serverless-gcf') Sorry about the trouble, and I appreciate you details in the issue! Helped narrow down what was going wrong. Feel free to close this issue if this is indeed the fix! |
Thanks a lot, @JasonEtco! That indeed fixed the problem. Closing the issue. |
Hi
can you please assist |
@rthadur you may have forgotten to export the function that you are requiring. Hard to know more without seeing code; I suggest you ask for help in our Slack channel! |
Hi @JasonEtco , this is the serverless.yml index.js `const express = require('express') const app = express() getting below error Error: Deployment failed: RESOURCE_ERROR
|
I followed the instructions described in the README, but I can't get the app to deploy on our Google Cloud Functions environment.
My
handler.js
file is:I've been trying to deploy it using the
gcloud
CLI:Running the above results in gcloud trying to deploy the app and returning the following error:
I tried changing the entry point to
handler.js
by adding the following line in mypackage.json
:But I get the following error:
Full Stacktrace: https://pastebin.com/m52p2PEL
Any idea what might I be missing?
The text was updated successfully, but these errors were encountered: