Nodejs sample code not working

harendar
Regular Visitor

Nodejs sample code not working

I am trying to run the sample code for nodejs but its showing below error:

(function (exports, require, module, __filename, __dirname) { import 'dotenv/config';
^^^^^^^^^^^^^^^

SyntaxError: Unexpected string
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)

Please check and help

3 REPLIES 3
API_Managers
Visa Developer Support Specialist

Re: Nodejs sample code not working

Hey @harendar,

 

That's a good question. I'll take a look and get back to you soon.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Managers
Visa Developer Support Specialist

Re: Nodejs sample code not working

Hey @harendar,

 

To follow up, I've logged INC9961343 for the engineering team to investigate. We're currently working to resolve the issue and someone will get back to you soon. Please let us know if you have other questions.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

peter91
Newbie

Re: Nodejs sample code not working

ASDA is currently inviting customers to complete a customer satisfaction survey. An invitation to the survey is currently being printed on select receipts.

https://topsurvey.onl/tellasda/