question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing wrapper function

See original GitHub issue

Hello,

When I do sls deploy, the bundle is correctly built however the handler is set to s_function.handler for a function located in let’s say src/function.js. It works if I manually rename it to src/function.handler in the AWS console but it gets overwritten after every deploy.

I can reproduce that with any of the esbuild starter I have found. Even with https://github.com/floydspace/serverless-esbuild/tree/master/examples/minimal

Note that when doing sls package or sls deploy, I can see the file s_function.handler being created then deleted on my root dir.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:16

github_iconTop GitHub Comments

1reaction
samchungycommented, Dec 22, 2021

Quick update, for some reason setting package individually: true the final zip is missing some node_module dependencies like pg, package.json, package-lock etc

That is likely related to https://github.com/floydspace/serverless-esbuild/pull/249. Working on it. Time is scarce for me though.

1reaction
mjyoccacommented, Dec 22, 2021

Quick update, for some reason setting package individually: true the final zip is missing some node_module dependencies like pg, package.json, package-lock etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

My wrapper function is missing a variable? - Stack Overflow
It turned out you needed to write a body for the OnBoxOverlap function .
Read more >
Wrapper function of missing value completion - R
It is a wrapper function for missing value completion. Usage. MV.missingValueCompletion(decision.table, type.method = "deletionCases"). Arguments ...
Read more >
Excel wrapper missing members/functions - MSDN - Microsoft
I find that some of the commands (members) for the Excel 2003 wrapper are missing, specifically CWorkbooks::Open().
Read more >
Dialyzer erroneously warns about missing return with wrapper ...
When running dialyzer with -Wmissing_return in a module with a wrapper function that receives a function that calls and returns that function's value,...
Read more >
CDC Setup wrapper functions - missing column
The wrapper function creates scripts for other functions that will return change data based on start/end times. But they don't build because ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found