hi,
I have script binded to a report.
and when I call that report it throws error.
2020-10-15T07:34:28.377Z - debug: Executing script MyScript
/work\jsreport\jsreport\node_modules\vm2\lib/contextify.js:89
throw Decontextify.value(e);
^
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Proxy.result.on (evaluate-user-script.js:46:39)
at Object.apply (/work\jsreport\jsreport\node_modules\vm2\lib/contextify.js:87:36)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
even the begining of the beforerender does not run.
I don't see console log in first line.
function beforeRender(req, res, done) {
console.log("beforerender");
I didn't changed anything in the environment.
it was working for my previous calls.
what can be the reason?
where is the node_modules files in windows?
how can I delete and re-install packages?