-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Import in node js file for aws lambda function is not working when I deployed it with serverless #646
Comments
Hi! As far as I understand this is not an issue with the example itself. In that case it would be better to ask for support in GitHub discussions here: https://github.com/serverless/serverless/discussions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
So I was trying to build a slack app and deploy it to aws. I built the app and it works fine but when I try and create other js files to import them in my main, the aws post url doesn't work.
The structure of my project(app) is:
Slack-app:
-------------- app.js
-------------- app_home.js
-------------- package.json
-------------- package-lock.json
-------------- serverless.yml
..... The others are node_modules, .serverless etc.
So basically, without the import of app_home.js, the code works when deployed to aws lambda. On the slack app, it sends a message back when you type in hello. But when I add an import, the whole thing, doesn't work.
This works:
Where as, this doesn't work at all:
So, I was just working, if it is a deployment issue?
My code for serverless is:
package.json looks like this
The text was updated successfully, but these errors were encountered: