It's working now. Appreciate your help. Thanks !!
Posts made by rafael-sad-vectorsolutions
-
RE: Error when run "jsreport start"
-
RE: Error when run "jsreport start"
Hi, it worked. But it is creating the
data
folder in the monorepo root and not reading the existing one I have inside the report folder.
I tried to use some options in the documentation to specify the report folder, but it didn't work! -
RE: Error when run "jsreport start"
Setting env var to cli_instance_lookup_fallback=enabled happens the same thing as when I run server.js directly. The server starts, but without any templates.
I tried to import the templates and it works, but as soon as I stop the server and run it again, it loses all!
-
RE: Error when run "jsreport start"
Hi I'm using npm. In the monorepo package.json, I have the following configuration:
"workspaces": [ "packages/*", "apps/*" ]
The folder with jsreport and other services is inside the apps folder.
And the jsreport I have this package.json:
{ "name": "reports", "version": "1.0.0", "main": "server.js", "dependencies": { "@jsreport/jsreport-chrome-pdf": "^3.2.0", "@jsreport/jsreport-cli": "^3.2.1", "custom-extension": "file:dependencies/jsreport-nunjucks", "diff": "^5.1.0", "jsreport": "^3.7.1", "moment-timezone": "^0.5.37", "puppeteer": "^14.4.1" }, "scripts": { "start": "jsreport start" }, "author": "", "license": "ISC" }
Thanks for the help!
-
Error when run "jsreport start"
Hi everyone, I've been struggling with this issue for 4 days now.
I used jsreport in a separate project and am migrating to a monorepo.
The problem is that when I leave jsreport outside the monorepo and install the dependencies, the
node_modules
folder is created inside the jsreport folder, and everything works normally.But in monorepo, the
node_modules
is in the monorepo root folder and not inside the jsreport folder. And with that, I'm getting the following error when I runjsreport start
inside de folder and I can't solve it.An error ocurred while trying to execute "start" command (2). Couldn't find a jsreport installation necessary to continue with the execution of the command, make sure to install jsreport first. (1). caused by error (2)
But if I run
jsreport init or config
command it works correctly !Thank you very much for any help!