-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Issue creating zip file on MacOS causes "Cannot find module '/var/task/app.js'" #803
Comments
Got your email! Just replying here in case anyone searches and comes across the same issue.
|
No luck, everything seems to be there that I'm expecting! To reduce dependencies, I actually stripped down to a super simple example that just has a health check endpoint which returns a 200. And I get the same exact error... |
UPDATE: IATA (I am the asshole 🤣) In package.json I have:
So since Up looks for either "app.js" OR a script named simply "start" in package.json, my function had no valid entrypoint... |
1 similar comment
UPDATE: IATA (I am the asshole 🤣) In package.json I have:
So since Up looks for either "app.js" OR a script named simply "start" in package.json, my function had no valid entrypoint... |
Prerequisites
up upgrade
)-v, --verbose
flag.Description
I'm an Apex Up Pro user, trying to deploy an express server as lambdas. The deployment succeeds but then the lambda errors out with the following stack trace:
I'm on Mohave 10.14.6 and it seems that Up is not correctly creating the zip file in lambda's accepted format. Any ideas what I can do here? This is a blocking issue for the project I have in flight, so any help would be super appreciated!
Steps to Reproduce
Create simple express server with a health check endpoint. Run
up deploy
on MacOS and then try to hit that server.The text was updated successfully, but these errors were encountered: