Skip to content

Build issues when deploying to AWS Lambda functions #91

@calvinbrewer

Description

@calvinbrewer

We had to move some of the long-running tasks to SQS with lambda-workers. We are using SST to automate the deployment.

Error: Could not resolve "@cipherstash/jseql-ffi-win32-x64-msvc" node_modules/.pnpm/@cipherstash+jseql-ffi@0.5.0/node_modules/@cipherstash/jseql-ffi/lib/load.cjs:11:40

I've experimented with multiple esbuild-settings which allows it to build, but doesn't resolve. Here are some of the resolutions I've tested:

  1. set nodejs.esbuild.external = ['@cipherstash/jseql']
  2. copy node_modules/@cipherstash/jseql and jseql-ffi to the function
  3. Add @neon-rs/load as dependency to apps/functions
  4. Add @cipherstash/jseql as dependency apps/functions

We continue to have issues loading the @cipherstash/jseql issues are run time. Any insights?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions