Thanks!
charlieknoll
@charlieknoll
Posts made by charlieknoll
-
RE: Errors running extension starter kit from clean install
I added the packages to the devDependencies in my extension package.json and it fixed the issue. Should I make a pull request to the extension starter kit?
https://github.com/ResponsivePaper/jsreport-responsivepaper-pdf/blob/master/package.json
-
Errors running extension starter kit from clean install
Hi,
I clone the repository, npm install, npm start.
It installs jsreport,
I then navigate to localhost:5488. The console shows the following errors:
ERROR in ../jsreport-reports/studio/ReportEditor.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
SyntaxError(11:6) Unknown word
9 |
10 | .listContainer > div {11 | // it somehow shows the horizontal scrollbar even when no needeit, this workaround to hide it
I delete the comments from ReportEditor.css in the node_modules/jsreport-reports/studio folder
But I get the following errors:
ERROR in ../jsreport-scheduling/studio/ScheduleProperties.js
Module not found: Error: Can't resolve 'cron-builder' in 'C:\dev\lib\jsreport-extension-starter-kit\node_modules\jsreport-scheduling\studio'
ERROR in ../jsreport-scheduling/studio/ScheduleProperties.js
Module not found: Error: Can't resolve 'cronstrue' in 'C:\dev\lib\jsreport-extension-starter-kit\node_modules\jsreport-scheduling\studio'
ERROR in ../jsreport-scheduling/studio/ScheduleProperties.js
Module not found: Error: Can't resolve 'ordinal-number-suffix' in 'C:\dev\lib\jsreport-extension-starter-kit\node_modules\jsreport-scheduling\studio'
ERROR in ../jsreport-assets/studio/AssetEditor.js
Module not found: Error: Can't resolve 'react-copy-to-clipboard' in 'C:\dev\lib\jsreport-extension-starter-kit\node_modules\jsreport-assets\studio'Any ideas on how to fix?
Thanks
-
RE: Is it possible to update properties of the template before engine runs?
I should have called it
beforeRecipeRender
. I see that the reporter also hasafterTemplatingEnginesExecutedListeners
. I could probably take the scripts extension and add support for that handler.PdfUtils embeds hidden html in the template engine output, I could similarly embed that html and parse it in
afterTemplatingEnginesExecuted
. -
RE: Is it possible to update properties of the template before engine runs?
I think I'd need something similar to pdfUtils to inject data back into the req object and also a new beforeEngineRender global function to set the the new template config. I imagine it would only be possible with a new custom extension.
-
Is it possible to update properties of the template before engine runs?
I'd like to change the chrome template's "format" property based on dynamic data that gets processed by the engine and have it override the default template's format.
For example:
req.template.chrome.format = 'Legal';
would overwrite the template's default setting of "Letter" if the height of the report's html exceeded a certain size.
Is this possible?
-
RE: jsreport v2 beta released - asking for a feedback
Ah thanks, I see it errored on the new spread syntax here:
engineRes.logs.forEach(function (m) {
reporter.logger[m.level](m.message, {...request, timestamp: m.timestamp})
}) -
RE: jsreport v2 beta released - asking for a feedback
I checked the instanceHandler.js and it errors on this line in function getJsreportModuleInstalled:
detectedModule = require(require.resolve(path.join(cwd, 'node_modules', detectedJsreport)))
ERROR: SyntaxError: Unexpected token ...
require.resolve seems to work ok, it returns:
E:\dev\lib\jsreport2\node_modules\jsreport\index.js
It seems there is a syntax error in index.js.
-
RE: jsreport v2 beta released - asking for a feedback
This is what was logged after running jsreport init 2.0.0-beta:
$ jsreport init 2.0.0-beta
jsreport installation not found, installing jsreport@2.0.0-beta version now, wait a moment...
jsreport installation finished..
Creating server.js
Creating package.json
Creating default config jsreport.config.json
Initialized