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

Error aws lambda function when building with Mac AppleSilicon #26

Closed
ennoucas opened this issue Mar 25, 2024 · 1 comment
Closed

Error aws lambda function when building with Mac AppleSilicon #26

ennoucas opened this issue Mar 25, 2024 · 1 comment
Assignees

Comments

@ennoucas
Copy link

ennoucas commented Mar 25, 2024

When trying to deploy a AWS lambda function with NodeJs (Typescript) using Infisical SDK I get the following:

✘ [ERROR] No loader is configured for ".node" files: asset-input/node_modules/@infisical/sdk-darwin-arm64/infisical.darwin-arm64.node

asset-input/node_modules/@infisical/sdk/binding.js:141:36:
  141 │             nativeBinding = require('@infisical/sdk-darwin-arm64')
      ╵    

Command ran: npx ts-node --prefer-ts-exts bin/sqs-lambda.ts

Context

"@infisical/sdk": "^2.1.8",
Apple M2
MacOs Sonoma (14.3.1)

@DanielHougaard
Copy link
Collaborator

Hi @ennoucas, apologies for the delayed response.

This seems to be an issue with the building rather than the SDK. I found this Github Issue which seems to be referencing exactly the same issue as you're facing.

Here's a proposed solution to the issue: aws/aws-cdk#18470 (comment)

Let me know if this works for you!

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

2 participants