aws-sdk-mock
aws-sdk-mock copied to clipboard
AWS.setSDKInstance is not a function
I'm trying to call AWS.setSDKInstance()
as instructed but got the error:
TypeError: AWS.setSDKInstance is not a function
I notice that in the latest version (1.6.1) that I got with npm install
, there is no such method in index.js
while it's there on Github. Did you forget to update the version number?
I am experiencing the same issue.
The latest release seems to be 2 months old, while the PR to include the AWS.setSDKInstance
was merged 3 weeks ago . Would it be possible to do a new release with the latest changes?
+1
+1 for release please
As a short term workaround you can
- clone the project
- navigate to the cloned project and run
npm pack
. This will create aaws-sdk-mock-1.6.1.tgz
file in the project directory - navigate to your project that depends on aws-sdk-mock and run
npm install path/to/aws-sdk-mock-1.6.1-tgz
and your project will now have the latest and greatest aws-sdk-mock
or you can go to your your_project/node_modules/aws-sdk-mock/index.js
and paste in the following underneath AWS.setSDK
AWS.setSDKInstance = function(sdk) {
_AWS = sdk;
};