The requested module '@aws-sdk/client-sts' does not provide an export named 'AssumeRoleCommand' #5692
Closed
3 tasks done
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
p1
This is a high priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
Checkboxes for prior research
Describe the bug
Since 495 the import from client sts is broken
Due to the fact, that package.json is missing exports field
The library always load cjs code instead of esm
And this cjs code is now somehow broken
SDK version number
@aws-sdk/client-sts@3.495.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.9.0
Reproduction Steps
Create file foo.mjs with contents
node ./foo.mjs
Observed Behavior
import { Credentials, STSClient, STSClientConfig, AssumeRoleCommand } from "@aws-sdk/client-sts";
^
SyntaxError: The requested module '@aws-sdk/client-sts' does not provide an export named 'AssumeRoleCommand'
Expected Behavior
Should work as <= 3.494.0
Possible Solution
Ideally add export field to the package.json like
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: