Replies: 6 comments 5 replies
-
I have the same issue. Hope they fix it soon. I've gotten this for months now. Not having a proper fix really. |
Beta Was this translation helpful? Give feedback.
-
Same issue here, using |
Beta Was this translation helpful? Give feedback.
-
As a workaround to this issue, you can install the exact version of the AWS types and Smithy Client. The problem stems from both of those dependencies not being pinned. Just add something like this in your package.json:
|
Beta Was this translation helpful? Give feedback.
-
Will take a look at it asap. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @trobert2 , Please refer to @julrich1 's comment. We are not pinning the dependencies on purpose.
You dont have to have the same version of lib and client installed. All you have to do is remove the carrot from the version number in your Since its not a bug I'll go ahead and convert this to a discussion. Thanks, |
Beta Was this translation helpful? Give feedback.
-
I had to pin other libraries too due to |
Beta Was this translation helpful? Give feedback.
-
Checkboxes for prior research
Describe the bug
I don't know if this is related or if I should open another issue but if I install an older version of
lib-dynamodb
, let's say3.208.0
the lock file looks like this:the peer dependency is NOT pinned.
This means that when I am trying to install
3.208.0
I get the latest versions of those libraries. This breaks the typescript compilation.The are concrete reasons why the latest version of
lib-dynamodb
does not work for me (bugs mostly) and I don't have a lock file previously generated because this particular project is new.Strict checks and static typing are required for our projects.
The errror will look like so:
SDK version number
@aws-sdk/client-dynamodb@3.208.0, @aws-sdk/client-dynamodb@3.209.0, @aws-sdk/client-dynamodb@3.211.0, @aws-sdk/client-dynamodb@3.212.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node: 18.6, 18.7, 19, typescript: 4.9.3
Reproduction Steps
start a new TS project and ensure the checks are strict.
I use this config (even stricter checks will yield the same result):
npm install @aws-sdk/client-dynamodb@3.208.0
npm install @aws-sdk/lib-dynamodb@3.208.0
Write some simple code using the dynamoDB library.
I've build the code using a few versions of the readily available node docker image:
node:18
andnode:19
should do the trickObserved Behavior
code did not compile
Expected Behavior
code compiles
Possible Solution
pin peer dependency versions
Additional Information/Context
No response
Beta Was this translation helpful? Give feedback.
All reactions