Thank you @jan_blaha. No problem, we'll continue to use the npm installation meanwhile.
adrapereira
@adrapereira
Posts made by adrapereira
-
RE: Unable to find module handlebarsposted in general forum
-
Unable to find module handlebarsposted in general forum
When using jsreport from the .exe file, I can't use handlebars in the helpers.
I was previously using the npm installation of jsreport and everything was working fine, but since the .exe is more convenient to install I tried to migrate. The first error I got was:
Error occured - Error during rendering report: handlebars.SafeString is not a function
Stak - TypeError: handlebars.SafeString is not a functionI'm using handlebars.SafeString in the helpers. To fix it I tried to require handlebars using the solution proposed here: https://github.com/jsreport/jsreport-handlebars/issues/3
Unfortunately it's throwing another error:
Error occured - Error during rendering report: Unable to find module handlebars. The error occurs in the require() method.I'm using version 1.6.0, Windows executable downloaded from GitHub, but this happened in previous versions.
If anyone can help me figure this out I would appreciate it!
Thanks!