In jsreport-core -> ./lib/reporter.js' ->app-root-path in this path while executing my node app application gets crash
I have installed the jsreport-core "^2.10.1" and trying to deploy and deployed successfully on Lambda. But Application crash and throws below error. Kindly give me a insights to find the root cause and solution. i have invest lots of time over here.
ERROR Uncaught Exception
{
"errorType": "TypeError",
"errorMessage": "Cannot read properties of undefined (reading 'filename')",
"stack": [
"TypeError: Cannot read properties of undefined (reading 'filename')",
" at resolve (/var/task/dist/index.js:394335:50)",
" at module2.exports (/var/task/dist/index.js:394352:25)",
" at node_modules/app-root-path/index.js (/var/task/dist/index.js:394379:23)",
" at __require (/var/task/dist/index.js:13:50)",
" at node_modules/jsreport-core/lib/reporter.js (/var/task/dist/index.js:394634:19)",
" at __require (/var/task/dist/index.js:13:50)",
" at node_modules/jsreport-core/index.js (/var/task/dist/index.js:398812:20)",
" at __require (/var/task/dist/index.js:13:50)",
" at dist/src/lib/download_service.js (/var/task/dist/index.js:573617:20)",
" at __require (/var/task/dist/index.js:13:50)",
" at dist/src/chargingSessions/invoices.js (/var/task/dist/index.js:573710:30)",
" at __require (/var/task/dist/index.js:13:50)",
" at dist/src/chargingSessions/router.js (/var/task/dist/index.js:573848:22)",
" at __require (/var/task/dist/index.js:13:50)",
" at dist/src/setupRoute.js (/var/task/dist/index.js:621827:21)",
" at __require (/var/task/dist/index.js:13:50)",
" at Object.