Hi, I am trying to use nodejs in Apigee. Getting below error when I use node module- require(‘amazon-cognito-identity-js-node’);
I have tested the node app locally and its working perfectly.
I have exported all the required modules and when I invoke the api, it throws error.
If I remove the require module amazon-cognito-identity-js-node in server.js, the error is not coming. But I need this module to be present so that I can authenticate cognito user.
Any help would be highly appreciated.
{“fault”:{“faultstring”:"Script node executed prematurely: missing ; before statement\nmissing ; before statement\n at module.js:439:0\n at module.js:474:0\n at module.js:356:0\n at module.js:312:0\n at module.js:364:0\n at require (module.js:380:0)\n at /organization/environment/api/node_modules/amazon-cognito-identity-js-node/src/index.js:18:0\n at module.js:456:0\n at module.js:474:0\n at module.js:356:0\n at module.js:312:0\n at module.js:364:0\n