Closed paul-uz closed 6 months ago
So @aws-sdk/node-http-handler
is deprecated, moving to @smithy/node-http-handler
so I fixed that, now all smithy types are 2.9.1. But I still have the AwsStub error.
Updated TS to v5.3.3, still no dice.
Hey. Creating a fresh project with provided dependencies does not give me any type errors. After changing versions from ^3.496.0
to 3.496.0
to install exactly those packages also no errors.
Please try installing the latest AWS SDK packages and following steps described in #197. You can also try removing package-lock.json
to resolve fresh versions of all dependencies. If nothing helps, please create a new repository with problem reproduction and reopen this issue.
I'll have to recheck as we recently moved to node20 and updated pretty much everything
Checklist
Bug description
Using the latest AWS SDK packages (3.496.0) and latest mock version (3.0.1) I am seeing this error:
I checked the smithy types, and I have mostly 2.9.1 but one AWS package, node-http-handler, uses 1.2.0. I installed the types as a dev dependency, but that didn't help.
Reproduction
const foo = mockClient(new S3Client({ region: 'eu-west-1' })
Environment
EDIT - updated AWs package list