-
Notifications
You must be signed in to change notification settings - Fork 584
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
CJS build for credential provider references undefined __importStar #5750
Comments
It seems like you can workaround this issue by doing the following when using esbuild:
|
We expect to include this fix in the next release. There was a correction needed in an old TSConfig file that was previously undetected. |
Thank you ser, lightspeed |
A patch was released in https://www.npmjs.com/package/@aws-sdk/credential-providers/v/3.504.1 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
aws-sdk-js-v3/packages/credential-providers/src/fromTemporaryCredentials.ts
Line 69 in 1751692
This line
await import
s a dependency at runtime. Wen the code gets compiled down to CJS, it results in the following code:In the compiled file
fromTemporaryCredentials.csj
there is no__importStar
to be found.When manually adding
at the top of the file it will work.
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.11.0
Reproduction Steps
Observed Behavior
Expected Behavior
I expect it to work.
Possible Solution
Add this to the file and it works, but this is after it was built.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: