-
Notifications
You must be signed in to change notification settings - Fork 637
Closed
Labels
bugThis issue is a bug.This issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.p2This is a standard priority issueThis is a standard priority issue
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
Installing @aws-sdk/core or @aws-sdk/types tells TS that NodeJS globals are available, which can make TS ignore potential errors in browsers.
Related issue and more info, context: aws-amplify/amplify-js#11736
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Browser
Details of the browser/Node.js/ReactNative version
Chrome: 128.0.6613.84
Reproduction Steps
https://stackblitz.com/edit/vitejs-vite-gmzgbg?file=src%2Fmain.ts
- Wait for
npm installto finish. - Note that when hovering on
process.env, TS shows us that NodeJS globals are available. - If you comment out the line that does
import '@aws-sdk/core';, the errors show up. They should show up either way, because I've specified"types": [],intsconfig.json, so global types from@types/nodeshould not be included, even though I've installed the@types/nodepackage.
Observed Behavior
See aws-amplify/amplify-js#11736
Expected Behavior
See aws-amplify/amplify-js#11736
Possible Solution
No response
Additional Information/Context
No response
ashika112 and osnoser1
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.p2This is a standard priority issueThis is a standard priority issue