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)
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.
-
RE: Error while running latest versions of jsreport and electron
@bjrmatos yeah, I had updated to reflect the latest changes, and the steps are been updated in the README.md file of the repository. Please review and fix the issue.
-
Error while running latest versions of jsreport and electron
Hi,
I had installed the latest versions of jsreport and electron through npm. While executing the program I am getting an error as
jsreport requires to have installed a nodejs version of at least >=8.9 but you have installed version 7.9.0. please update your nodejs version and try again
, but I have installed nodejs 8.10.Can anyone help me how to fix it.
Thanks,
Bala -
RE: Error while building an application that includes jsreport
I tried putting the jsreport in dependencies and installed react so that the app gets builds and install fine but while opening the application it's not getting opened.
Even I checked with electron team, they said everything from their side is fine. So can you people please check from your end what is the issue and help me out!
-
RE: Dynamic Report based on Dynamic Data
Ohhhh!!! That's really Great!!! @vajnorcan
Thanks for your quick and valuable guidance.
-
RE: Dynamic Report based on Dynamic Data
@vajnorcan Thanks for your reply. But what you said is out of my question. Once again I will repeat my question with more information.
I have a table with 5 rows on the screen, If the use clicks generate report I have to generate report with a table of 5 rows to achieve this I am using
<table></table> and <tr></tr>
tags manually. In case if the user is adding a new row in the screen using "Add New Row" button and generates the report, then the report should have a table of 6 rows, in this case manual coding will not be helpful. So I was trying to make it automated with javascripts, but jsreport is not supporting the<script></script>
tag, so please help how to achieve that. -
Dynamic Report based on Dynamic Data
Hi,
My requirement is, the UI will be having a table with number of rows and the user need to enter the value there and after that my application has to capture the data from the table and have to generate the report. Here the issue is if the user adds a new row in the UI I have to add new row in the report. My application is a standalone desktop apllication, here jsreport is running in the backend along with electron and the frontend is angular5.
As per the following reference I found it is not possible.
https://forum.jsreport.net/topic/566/javascript-on-a-script-pageIf I am wrong please guide me how to achive this.
Thanks,
Bala -
RE: Error while building an application that includes jsreport
Hi,
I have created a demo app using electron and jsreport and added to my github repository. Please check and update me.
Github link: https://github.com/bala10/electron-jsreport
-
Error while building an application that includes jsreport
Hi Team,
I had developed an application with the help of electron and jsreport. I can able to run the script directly but when it comes to build I am getting the error. If I add jsreport in dependencies, I am getting the following error while building the application itself:
Error: Unresolved node modules: react
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\packageDependencies.ts:112:21
at Generator.next (<anonymous>)
From previous event:
at Collector.resolveUnresolvedHoisted (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\packageDependencies.ts:88:81)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\packageDependencies.ts:83:18
at Generator.next (<anonymous>)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
From previous event:
at Collector.collect (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\packageDependencies.ts:76:28)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\packageDependencies.ts:47:44
at Generator.next (<anonymous>)
From previous event:
at getProductionDependencies (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\out\util\packageDependencies.js:130:17)
at Lazy.<anonymous> (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:109:24)
at Generator.next (<anonymous>)
From previous event:
at Lazy.get value [as value] (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\lazy-val\src\main.ts:18:23)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\yarn.ts:121:81
at Generator.next (<anonymous>)
From previous event:
at rebuild (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\out\util\yarn.js:234:18)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\util\yarn.ts:20:11
at Generator.next (<anonymous>)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
From previous event:
at installOrRebuild (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\out\util\yarn.js:68:17)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:451:13
at Generator.next (<anonymous>)
From previous event:
at Packager.installAppDependencies (C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:415:70)
at C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:365:20
at Generator.next (<anonymous>)
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:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729: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>so I tried to add the jsreport to devdependency, here the build runs successfully but while opening the application I am getting the following error:
can anyone please help me to fix it.
Thanks,
Bala -
RE: JSreport in a standalone desktop application.
Ah!, That's Okay! Will stick with 1.7.13 itself.
I really appreciate your work and quick response :) .
-
RE: JSreport in a standalone desktop application.
Thanks for your quick response.
That's great! it worked fine with the electron versions till "v1.7.13".
But when it goes to the latest versions of electron(v1.8.0 and above) it's getting crashed with the following log,
2018-04-25T09:04:07.142Z - info: Initializing jsreport@1.10.0 in development mode using configuration file: jsreport.config.json
2018-04-25T09:04:07.146Z - info: Setting process based strategy for rendering. Please visit http://jsreport.net/learn/configuration for information how to get more performance.
2018-04-25T09:04:07.156Z - info: Searching for available extensions in D:\Electron-jsreport
2018-04-25T09:04:07.300Z - info: Extensions location cache contains up to date information, skipping crawling in D:\Electron-jsreport\node_modules
2018-04-25T09:04:07.324Z - info: Found 30 extensions
2018-04-25T09:04:07.386Z - debug: Writing extension locations cache to C:\Users\BALASU~1\AppData\Local\Temp\jsreport\core\locations.json
2018-04-25T09:04:07.391Z - debug: Discovered 30 extensions
2018-04-25T09:04:07.394Z - info: Using extension import-export
C:\Users\balasubramani\AppData\Roaming\npm\node_modules\electron\dist\electron.exe: c:\projects\electron\vendor\node\src\async-wrap.cc:399: Assertion `env->async_hooks_init_function().IsEmpty()' failed.Please review the log and help me!