Yes, that's the way I'm using. When importing some example to my server, everything works and also new files work if I clone them from the example. When I add new code file to the project without cloning, the #asset does not work at all. I don't know what is happening behind the scenes but I'll manage with this information though it's a "bit" strange.
jahau
@jahau
Posts made by jahau
-
RE: How to use script-assets?
-
How to use script-assets?
I can use the #asset functionality for .css-files but for .js-files it doesn't find the file. There's error shown in the report generation. I'm using it in the same way as in the examples.
Does it require some extra tricks to refer .js-files in a another .js-file?
-
RE: Error: Failed to launch the browser process!
Solved, had to update extensions "executablePath" to chromium.
-
Error: Failed to launch the browser process!
I get the following error when rendering template in Raspbian GNU/Linux 10 (buster). Any ideas how to get fixed? Thanks.
Error: Failed to launch the browser process!
/jsreportapp/node_modules/puppeteer/.local-chromium/linux-800071/chrome-linux/chrome: 26: /jsreportapp/node_modules/puppeteer/.local-chromium/linux-800071/chrome-linux/chrome: Syntax error: Unterminated quoted stringTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (/jsreportapp/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20) at Interface.<anonymous> (/jsreportapp/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68) at Interface.emit (events.js:327:22) at Interface.close (readline.js:416:8) at Socket.onend (readline.js:194:10) at Socket.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21)