TypeError: Cannot add property config, object is not extensible at _FetchHttpHandler.handle #5987
Closed
3 tasks done
Labels
bug
This issue is a bug.
closed-for-staleness
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Checkboxes for prior research
Describe the bug
While uploading a file to s3, it gives Typeerror. But this happens only when I do
yarn start
and is working correctly in build and serve. This is when using vite, it was working on CRA.error message:
SDK version number
@aws-sdk/client-s3@3.470.0
Which JavaScript Runtime is this issue in?
Browser
Details of the browser/Node.js/ReactNative version
Chrome: 123.0.6312.107 Safari: 17.4.1
Reproduction Steps
Observed Behavior
It seems the send method is trying to extend the argument provided which failed to extend the property
config
possibly due touse strict
mode.Expected Behavior
It should not throw any Typeerror and file should be uploaded successfully as it is done in build mode.
Possible Solution
Either the argument should be extensible by default or we may should be able to configure if strict mode should be removed or not [but I guess this should not be done].
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: