jsreport-core icon indicating copy to clipboard operation
jsreport-core copied to clipboard

In jsreport-core -> ./lib/reporter.js' ->app-root-path in this path while executing my node app application gets crash

Open jayakumar1998 opened this issue 2 years ago • 0 comments

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. (/var/task/dist/index.js:622691:20)", " at Module._compile (node:internal/modules/cjs/loader:1198:14)", " at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)", " at Module.load (node:internal/modules/cjs/loader:1076:32)", " at Function.Module._load (node:internal/modules/cjs/loader:911:12)", " at Module.require (node:internal/modules/cjs/loader:1100:19)" ] }

jayakumar1998 avatar Jul 23 '23 16:07 jayakumar1998