James Hankins last edited by
I'm importing the SDK like this:
import "aws-sdk.js" as AWS ... //Later Calling like this var userPool = new AWS.AmazonCognitoIdentity.CognitoUserPool(poolData);
Receiving an error:TypeError: Cannot read property 'CognitoUserPool' of undefined
I added the aws-sdk.js by using add existing file from Qt Creator and selecting the file which is in the source directory. Is there something else I need to do to enable the use of the SDK?
fcarney last edited by
Does that code assume it is running in a web browser? It may be expecting a DOM to be available as well as other common objects that browsers support. Are you sure that Qt JS is compatible? You may need to go through the AWS code and see if it relies on anything specific to browsers.
James Hankins last edited by James Hankins