Error: ENOENT: no such file or directory
-
Good day. We follow the "single file executable" configuration as described here: https://jsreport.net/learn/single-file-executable
and have chosen to use this extension for storing templates
I've copied the respective modules toc:\...\jsreport\node_modules
, and have setdiscover: true
in thejsreport.config.json
Since then the application crushes with error:
2019-07-25T11:53:36.464Z - info: Initializing jsreport@2.5.0 in development mode using configuration file: jsreport.config.json 2019-07-25T11:53:36.465Z - info: Searching for available extensions in ####### 2019-07-25T11:53:36.470Z - error: Error occured during reporter init Error: ENOENT: no such file or directory, stat 'c:\work\jsreport\jsreport\node_modules' at Promise.longStackTracesCaptureStackTrace [as _captureStackTrace] (jsreportRuntime.js:40335:19) at Object.ret [as statAsync] (eval at makeNodePromisifiedEval (jsreportRuntime.js:43186:12), <anonymous>:8:21) at Object.get (jsreportRuntime.js:167429:29) at <anonymous>
And indeed I do not have such directory on hard disk.. Is there any workaround?
-
Thank you. This is a bug in the jsreport binary version. The workaround is to add the following to the config
{ "useExtensionsLocationCache": false}
We will make sure this is fixed in the next version. The issue is now tracked here
https://github.com/jsreport/jsreport/issues/604
-
EDIT: it should have been
{ "useExtensionsLocationCache": false}
-
Thank you very much!