https://www.boundaryml.com logo
🟡 Weird BAML Import Issues in Lambda Environment
# questions
w
I may be going a bit crazy here (or be an idiot), but I'm having weird baml import issues with Image, heading for a lambda environment
Copy code
complianceWorkerQueue.subscribe({
  handler: "packages/functions/src/complianceWorker/index.handler",
  link: [bucket, complianceWorkerQueue, ...allSecrets, complianceDecisionTopic],
  nodejs: {
    install: ["@boundaryml/baml", "@boundaryml/baml-linux-x64-gnu"],
    esbuild: {
      loader: {
        ".node": "file",
      },
    },
  },
});
I have this set up with esbuild
I don't have any IDE warnings, and I can fully see Image in my packages boundary/baml
but I get
The requested module '@boundaryml/baml' does not provide an export named 'Image'
, no matter what I try
b
To be clear, you're dealing with this locally, not in Lambda, right?
The thing I'm wondering about is the
linux-x64-gnu
part