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

No native build was found - EsBuild AWS Lambda #192

Open
2 tasks done
rdzidziguri opened this issue Jul 15, 2023 · 2 comments
Open
2 tasks done

No native build was found - EsBuild AWS Lambda #192

rdzidziguri opened this issue Jul 15, 2023 · 2 comments

Comments

@rdzidziguri
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

I understand that we are relying on a native module, so this might not be a straightforward approach to shoot and deploy; however, I was wondering if anyone could achieve a successful code build with fastify lambda and this package. Whenever using esbuild to bundle it I end up with the error No native build was found.

@mcollina
Copy link
Member

I don't know how to help with this, it's a matter of letting the module find its binary.

@MagdielCAS
Copy link

Hi @rdzidziguri, I was having the exact same issue, after some time I was able to fix it by adding the following esbuild config:

platform: "node",
packages: "external",
entryPoints: ['path/to/index.ts'],

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

No branches or pull requests

3 participants