I have a JS that works, I can run it from my Shell or CMD, but when I try to execute it in AA i am getting bot error. After removing all the possibilities I found out there is an issue with additional libraries. In my script I have const fs = require('fs') so this is the first problem and next is require('html-pdf') because all my script is doing just taking an html file from the folder and saving is as pdf.
As I said the script works, I have all the libraries but it doesn’t work from the AA level. Any advices?