Aws Js Sdk Typeerror: Sts Is Not A Constructor
I'm have a ReactJS application that uses the aws-sdk for cognito login. I used yarn to install all modules, but when I try to access the website at localhost I get a JS error: Unca
Solution 1:
I think new STS(...)
gives you such error of STS in not a constructor
.
Please get rid of new
operator from it:
this.sts = this.sts || STS(clientConfig);
Post a Comment for "Aws Js Sdk Typeerror: Sts Is Not A Constructor"