is it normal jsreport init take so much time( > 2min)?
iconte
@iconte
Posts made by iconte
-
RE: Error while running a report in a fresh new installation
-
RE: Error while running a report in a fresh new installation
I've tried to use default option( phantom-js and handlebars).
OS: Windows 10
Node version : 6.10.2 (when I tried to use 8.9.4 I couldn't startup the server )
npm version : 5.6.0
steps used : npm install jsreport-cli > jsreport configure > jsreport init > jsreport start
weird stuff while installing : jsreport init command can't find jsreport installation and needs to be terminated with ctrl+c .Here's the debug log when I run invoice or any template:
Error occured - Error during rendering report: Cannot read property 'forEach' of undefined
logs:
+0 Starting rendering request 2
+4 Rendering template {shortid:rkJTnK2ce, recipe:phantom-pdf, engine:handlebars, preview:true}
+4 Adding sample data Sy5S19ncg
+14 Replaced assets ["Invoice styles.css","Invoice logo.png"]
+15 Resources not defined for this template.
+17 Base url not specified, skipping its injection.
+17 Rendering engine handlebars
Stak - TypeError: Cannot read property 'forEach' of undefined
at D:\projetos\report\node_modules\jsreport-core\lib\render\render.js:97:19
at tryCatcher (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\promise.js:638:18)
at D:\projetos\report\node_modules\jsreport-core\node_modules\bluebird\js\release\nodeback.js:42:21
at Request._callback (D:\projetos\report\node_modules\script-manager\lib\manager-servers.js:215:5)
at Request.self.callback (D:\projetos\report\node_modules\script-manager\node_modules\request\request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (D:\projetos\report\node_modules\script-manager\node_modules\request\request.js:1163:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (D:\projetos\report\node_modules\script-manager\node_modules\request\request.js:1085:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9) -
RE: Error while running a report in a fresh new installation
It was just a simple page containing a {{teste}} variable. Even when I try to run the default examples(invoice) I've got the same error. My intention is having a working local installation to add wkhtmltopdf
-
RE: Error while running a report in a fresh new installation
Here's the full error:
Error occured - Error during rendering report: Cannot read property 'forEach' of undefined
Stak - TypeError: Cannot read property 'forEach' of undefined
at D:\projetos\jsreport\node_modules\jsreport-core\lib\render\render.js:97:19
at tryCatcher (D:\projetos\jsreport\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:638:18)
at D:\projetos\jsreport\node_modules\bluebird\js\release\nodeback.js:42:21
at Request._callback (D:\projetos\jsreport\node_modules\script-manager\lib\manager-servers.js:215:5)
at Request.self.callback (D:\projetos\jsreport\node_modules\script-manager\node_modules\request\request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (D:\projetos\jsreport\node_modules\script-manager\node_modules\request\request.js:1163:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (D:\projetos\jsreport\node_modules\script-manager\node_modules\request\request.js:1085:12)
at IncomingMessage.g (events.js:292:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9) -
Error while running a report in a fresh new installation
After many times trying to install jsreport on windows 10 and running my report I've got the same error:
at D:\projetos\jsreport\node_modules\jsreport-core\lib\render\render.js:97:19
at tryCatcher (D:\projetos\jsreport\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\projetos\jsreport\node_modules\bluebird\js\release\promise.js:512:31)Did I forget something during installation ?
-
RE: wkhtmltopdf : internal link not working as expected
thank you. it's working!
-
wkhtmltopdf : internal link not working as expected
Doing some tests with wkhtmltopdf using https://playground.jsreport.net I couldn't create anchors to a certain part of the page( like an index link), even though when I set href to a url it works as expected. Please take a look at the code I'm using:
Index page:
<a href="#linkToPageTwo">Page 2 </a>Target page:
<a name="linkToPageTwo"></a>Is there a better way to do this using jsreports?