-
Notifications
You must be signed in to change notification settings - Fork 399
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
New AWS Lambda Example error: Failure: serverlessExpress is not a function #804
Comments
So i added a global.d.ts file in the root of my project and added: declare module '@vendia/serverless-express'; The popup issue disappeared from VS Code but the original error still gets thrown (Failure: serverlessExpress is not a function) |
Hey @avery100, thanks for raising this issue. Truthfully, I only looked over the example code and referenced it against the documentation. I didn't deploy it and double-check that it worked. The changes looked minor 😳 I'll look into reproducing the issue and see if I can find a solution. I appreciate the updates as you explore it as well, so please let me know if you make some headway! |
@avery100 I was able to resolve the issue by updating Getting there involved a few steps. First, I noticed that our current example still uses the original Would you mind confirming by upgrading to the latest version as well?
|
Hi @mwbrooks, I had to finish my code for the night and so i reverted to the deprecated aws-serverless-express version of my code - got it all working that way for now. I have to switch hats and work on another app - i will try to confirm tomorrow or the day after. Thank you so much for figuring this out! |
@avery100 No worries and thanks for taking the time to help us confirm the fix! 👊🏻 I've merged PR #806, which updates the documentation and example app. I tested it locally and on AWS Lambda. If you've reverted to the older approach, then you should be able to use Otherwise, you can update your code to use the modern approach, which requires |
Description
Sorry about the spam - Github server was spasming when i hit submit and it hung, i must have hit refresh. Apologies.
-- running my app code that worked before the updgrade, i receive this error:
Thinking that it was my code that caused the issue, i just ran the exact code from here: https://github.com/slackapi/bolt-js/blob/main/examples/deploy-aws-lambda/app.js
Still getting the same error.
Here is the serverless local app start:
Your help is greatly appreciated. Thank you very much for your attention :-)
Andy
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
@slack/bolt 3.2.0
@vendia/serverless-express@3.4.0
node version: v12.18.3
OS version(s): mac os sierra 10.12.6 (16G2136)
Steps to reproduce:
1.Follow the steps here exactly: https://slack.dev/bolt-js/deployments/aws-lambda
2.
3.
Expected result:
Local app to process Slack request / input
Actual result:
Error processing the Slack request / input
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: