just getting started
-
Hi Jan...
I'm a newbie to jsreport and just trying to get it fired up on my local windows 7 machine... The program is up and running and I'm trying to run the sample report, Orders... I'm getting this error: Unsupported module in scripts: http. To enable require on particular module, you need to update the configuration as {"scripts": { "allowedModules": ["http"] } } I found my prod.config.json file, added the value, and saved the file, but the error still occurs... Pls see uploaded screenshot... Can you get me sorted?
Thanks,
Alec
-
Hi Alec,
- make sure you restarted jsreport after editing config file
- make sure you actually edit the right config file. jsreport uses
dev.config.json
orprod.config.json
based on theNODE_ENV
environment variable. It isdev.config.json
by default. You can see which config is used in the first line of jsreport output or log. You can see this information also in the browsers tab title.
-
Hi Jan,
Thanks for the quick reply... It's working perfectly!
Cheers!
-Alec