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

Issue with architect/functions dynamodb package #2

Open
hermano360 opened this issue Jun 26, 2024 · 0 comments
Open

Issue with architect/functions dynamodb package #2

hermano360 opened this issue Jun 26, 2024 · 0 comments

Comments

@hermano360
Copy link

I am trying to use the dynamodb functionality from

import arc from "@architect/functions";

// inside handler
  const values = arc.tables();

But am getting the following error:

✘ [ERROR] Could not resolve "@aws-sdk/lib-dynamodb"

    node_modules/@architect/functions/src/tables/legacy.js:18:28:
      18 │     let docclient = require('@aws-sdk/lib-dynamodb')
         ╵                             ~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@aws-sdk/lib-dynamodb" as external to exclude it from the bundle, which
  will remove this error and leave the unresolved path in the bundle.

Could this be an issue related to my runtime or additional dependencies I might need to add?

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

1 participant