-
Notifications
You must be signed in to change notification settings - Fork 27
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
AWS CRT binary not present in any of the following locations #251
Comments
I am having this similar issue with M1 mac.
|
I had the same issue whilst I'm using it in NextJs on Vercel, my temporary fix was just to go back to 3.28.0. |
I have the same issue while bundling my build scripts using rollup.js. I can't roll back to 3.28, since I need things from the newer releases. Is there any way to circumvent the requirement aws-crt? This sucks. |
There appear to be two separate issues here: mac M1 and esbuild. M1 support was added here: https://github.com/awslabs/aws-crt-nodejs/releases/tag/v1.12.2 esbuild is not yet supported by the CRT. It can be made to work if you understand the CRT internals but it is a confusing and terrible experience. I am going to close this issue and open a new feature request scoped to esbuild. |
@bretambrose It can be made to work if you understand the CRT internals but it is a confusing and terrible experience. |
There aren't any existing examples, hence the feature request to include that in its scope (#467). You can tease out the basic structure needed from https://github.com/awslabs/aws-crt-nodejs/blob/main/lib/native/binding.js#L22-L37 The expectation is that the napi module ( At a bare minimum, we should allow arbitrary flexibility (environment variables or similar) when searching for the napi module, which would allow you to place it wherever you wanted, presumably side-by-side with esbuild output JS file. It would be nice (but I'm not sure how possible it is) to have an off-the-shelf solution for bundling the CRT with esbuild (or webpack or similar) that did not require you to manually manage the native addon in any way. |
@johannnishant Look at my comment on #467 |
Describe the bug
Transfered from aws/aws-sdk-js-v3#2753
When upgrading to 3.29.0, and compiling a typescript file to a single javascript file with esbuild, and running that with node, you get:
Your environment
First saw this in a codebuild job, but happens everywhere. So for example AWS Linux Workspace.
UPDTATE:
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
node.js
Seen with version 14 and 16.
Expected behavior
As per #2750 you should not pull in aws-crt and 200MB of dependencies.
[Created on behalf of @berenddeboer ]
The text was updated successfully, but these errors were encountered: