Yeah I had applied that and here is the config file contents
{ "certificate": { "key": "certificates/jsreport.net.key", "cert": "certificates/jsreport.net.cert" }, "httpPort": 5488, "httpsPort": null, "logger": { "console": { "transport": "console", "level": "debug" }, "file": { "transport": "file", "level": "info", "filename": "logs/reporter.log" }, "error": { "transport": "file", "level": "error", "filename": "logs/error.log" } }, "store": { "provider": "fs" }, "blobStorage": { "provider": "fs" }, "templatingEngines": { "strategy": "dedicated-process", "timeout": 10000, "allowedModules": [] }, "phantom": { "strategy": "dedicated-process", "timeout": 60000 }, "extensions": { "studio": { "enabled": false }, "authentication": { "cookieSession": { "secret": "<your strong secret>" }, "admin": { "username": "admin", "password": "password" }, "enabled": false }, "scripts": { "allowedModules": [ "request" ], "timeout": 60000 }, "sample-template": { "createSamples": true }, "allowLocalFilesAccess": true } }
and following is the error what I am getting
2018-10-22T09:47:17.403Z - error: Error occured during reporter init Error: ENOENT: no such file or directory, rename 'C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\static\dist\1.client.js' -> 'C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\static\dist\extensions.client.js' at Object.fs.renameSync (fs.js:766:18) at Reporter.reporter.on (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\lib\studio.js:76:12) at emitOne (events.js:121:20) at Reporter.emit (events.js:211:7) at configureExpressApp (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-express\lib\reporter.express.js:167:12) at Object.reporter.initializeListeners.add (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-express\lib\reporter.express.js:266:21) at C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\listener-collection\lib\listenerCollection.js:171:33 at C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\listener-collection\lib\listenerCollection.js:151:16 at tryCatcher (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:693:18) at Async._drainQueue (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:133:16) at Async._drainQueues (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:143:10) at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:17:14)
bala10
@bala10
Posts made by bala10
-
RE: Error occured during reporter init
-
RE: Error occured during reporter init
Even after following this also, I am getting the same issue.
-
RE: Error occured during reporter init
Thanks for your response @jan_blaha ,
I did followed the same way in the post, after all these done and once I built the application, it get crashes and leaves me an error stack as like I mentioned in the post, the error stack was given by error.txt file which was created by jsreport. I guess that's asking me to change the name of the file '1.client.js' to 'extensions.client.js' in jsreport studio, so please check and let me know how to fix that.
-
Error occured during reporter init
Hi,
I am using JSReport in a desktop application, which was built using electron.
Coming to point, I can able to compile the code and run it in development mode, but when I built .exe and start the application, JSReport crashes the application and while checking the log had found the following error message, please help me how to fix thisHere is the complete log error: Error occured during reporter init Error: ENOENT: no such file or directory, rename 'C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\static\dist\1.client.js' -> 'C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\static\dist\extensions.client.js'
at Object.fs.renameSync (fs.js:766:18)
at Reporter.reporter.on (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-studio\lib\studio.js:76:12)
at emitOne (events.js:121:20)
at Reporter.emit (events.js:211:7)
at configureExpressApp (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-express\lib\reporter.express.js:167:12)
at Object.reporter.initializeListeners.add (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\jsreport-express\lib\reporter.express.js:266:21)
at C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\listener-collection\lib\listenerCollection.js:171:33
at C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\listener-collection\lib\listenerCollection.js:151:16
at tryCatcher (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\balasubramani\AppData\Local\Programs\demo-app\resources\app.asar\node_modules\bluebird\js\release\async.js:17:14) -
RE: Error while running latest versions of jsreport and electron
@bjrmatos I'm just running out of time to start my project, If you confirms me whether it can be fixed, then I'm glad to purchase jsreport.
-
RE: Error while running latest versions of jsreport and electron
@bjrmatos I tried all the way that are possible from my side but I am not able to figure it out where the issue is..... So please check and share me how to integrate and build the electron application and jsreport.
-
RE: Error while running latest versions of jsreport and electron
Sure @bjrmatos ...... Will update you once I found the solution for that.
-
RE: Error while running latest versions of jsreport and electron
Thanks @bjrmatos ..... Yes now it's working fine.....
But still having issue while building the application. I am getting the following error while building the application itself:
`Error: Exit code: 1026. Command failed: C:\Users\balasubramani\AppData\Local\electron-builder\cache\wix\wix-4.0.0.5512.2\candle.exe -arch x64 -dappDir=D:\a\dist\win-unpacked -pedantic -wx project.wxs
D:\a\dist__msi-x64\project.wxs(57) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGk', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(58) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcbm9kZV9tb2R1bGVzXGFzeW5j', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(59) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcbm9kZV9tb2R1bGVzXGFzeW5jXGxpYg', is too long for an identifier. Standard identifiers are
72 characters long or less.
D:\a\dist__msi-x64\project.wxs(60) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcYmlu', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(63) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXG1z', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(64) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXGRlYnVn', is too long for an identifier. Standard identifiers are 72 characters
long or less.
D:\a\dist__msi-x64\project.wxs(65) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXGRlYnVnXHNyYw', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(66) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZTZcbGli', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(67) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbGli', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(68) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzI', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(69) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcc3dpZnRzaGFkZXI', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(70) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcbG9jYWxlcw', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(71) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcTUVJUHJlbG9hZA', is too long for an identifier. Standard identifiers are 72 characters long or less.WiX Toolset Compiler version 4.0.0.5512
Copyright (c) .NET Foundation and contributors. All rights reserved.D:\a\dist__msi-x64\project.wxs
D:\a\dist__msi-x64\project.wxs(57) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGk', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(58) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcbm9kZV9tb2R1bGVzXGFzeW5j', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(59) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcbm9kZV9tb2R1bGVzXGFzeW5jXGxpYg', is too long for an identifier. Standard identifiers are
72 characters long or less.
D:\a\dist__msi-x64\project.wxs(60) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1x3aW5zZXItd2l0aC1hcGlcYmlu', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(63) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXG1z', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(64) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXGRlYnVn', is too long for an identifier. Standard identifiers are 72 characters
long or less.
D:\a\dist__msi-x64\project.wxs(65) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZV9tb2R1bGVzXGRlYnVnXHNyYw', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(66) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbm9kZTZcbGli', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(67) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcbGli', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(68) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzI', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(69) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcc3dpZnRzaGFkZXI', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(70) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcbG9jYWxlcw', is too long for an identifier. Standard identifiers are 72 characters long or less.
D:\a\dist__msi-x64\project.wxs(71) : error CNDL1026 : The Directory/@Id attribute's value, 'dcmVzb3VyY2VzXGFwcC5hc2FyLnVucGFja2VkXG5vZGVfbW9kdWxlc1xwdXBwZXRlZXJcLmxvY2FsLWNocm9taXVtXHdpbjY0LTU1NTY2OFxjaHJvbWUtd2luMzJcTUVJUHJlbG9hZA', is too long for an identifier. Standard identifiers are 72 characters long or less.at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:125:16 at ChildProcess.exithandler (child_process.js:282:5) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
at MsiTarget.build (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\targets\MsiTarget.ts:42:44)
at Function.buildAsyncTargets (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:144:36)
at WinPackager.packageInDistributableFormat (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:123:24)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:118:10
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at WinPackager.pack (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:115:95)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:373:24
at Generator.next (<anonymous>)
at xfs.stat (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\graceful-fs\polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:153:5)
From previous event:
at Packager.doBuild (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:341:39)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:317:52
at Generator.next (<anonymous>)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\graceful-fs\graceful-fs.js:99:16
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\graceful-fs\graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:135:15)
From previous event:
at Packager._build (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:294:133)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:290:23
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Packager.build (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:248:14)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\index.ts:51:40
at Generator.next (<anonymous>)
From previous event:
at build (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\out\index.js:220:17)
at build (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\src\builder.ts:234:10)
at then (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\src\cli\cli.ts:46:19)
at <anonymous>`Due to this error I was confused where the issue might, so I just built another app with only electron and jsreport was not included into that, that builds fine and that also works good. But if I integrate jsreport with electron and try to build I am ending with this error.
I had made a minor change in my repository so please use the updated one to check that and please let me know where the issue is.
-
RE: Error while running latest versions of jsreport and electron
@bjrmatos will you please give me some update on this.