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 resolving module url when bundling @aws-sdk/client-comprehend, @aws-sdk/client-translate or @aws-sdk/client-polly #267

Closed
jagonzalr opened this issue Mar 13, 2024 · 2 comments

Comments

@jagonzalr
Copy link

jagonzalr commented Mar 13, 2024

Hello,

Using the latest llrt-lambda-arm64.zip layer bundle on some of my Lambda functions are working great.

Now I have a use case where I need to have comprehend, translate or polly modules. What I did was bundle those packages into my code. I first got an error that @smithy/shared-ini-file-loader module was not found. So I added that module to the code but now I'm getting Error resolving module url.

My Lambda function also uses DynamoDB. When I removed all references to comprehend or translate it worked perfectly. But adding comprehend, translate or polly breaks it.

Its complaining in this line of code in my Lambda function.

Screenshot 2024-03-13 at 11 24 02

Any ideas on how to fix that?

Running on Node 18

@jagonzalr jagonzalr changed the title Error resolving module url when bundling @aws-sdk/client-comprehend or @aws-sdk/client-translate Error resolving module url when bundling @aws-sdk/client-comprehend, @aws-sdk/client-translate or @aws-sdk/client-polly Mar 13, 2024
@richarddavison
Copy link
Contributor

richarddavison commented Mar 13, 2024

URL module is WIP. Should be there quite soon. Please target browser when bundling SDKs that are not already embedded :) That should help with some issues. I'll also add an example how to add a SDK client that is not already bundled.
See: #214

@richarddavison
Copy link
Contributor

URL module is now released:
#304

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