Skip to content
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

[Serverless V4] TypeScript Layers Not Working #12782

Open
danhnguyeen opened this issue Sep 3, 2024 · 1 comment
Open

[Serverless V4] TypeScript Layers Not Working #12782

danhnguyeen opened this issue Sep 3, 2024 · 1 comment
Assignees
Labels

Comments

@danhnguyeen
Copy link

Issue description

Hi there,
I'm working with Serverless Layers and have been creating some layers in a separate service using TypeScript. Since Serverless V3 doesn't officially support TypeScript, I had to compile my layers and upload them as a .zip file. Everything worked fine.

However, I know that Serverless V4 officially supports TypeScript, so I assumed I wouldn't need to compile my Lambda functions and zip them manually anymore, expecting Serverless V4 to handle it. But it seems like it doesn't. My Lambda functions aren't working with the new layers. I downloaded the layers built by Serverless V4, and I noticed that the source code is still in TypeScript.

Could you please help me with this issue?
Thanks

The source code from Serverless V3 (Work)
image

The source code from Serverless V4 (Doesn't Work)
image

Context

No response

@Mmarzex
Copy link
Contributor

Mmarzex commented Sep 3, 2024

@danhnguyeen We do not currently support building Layers using our built in Esbuild support. It currently only supports building the functions themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants