Unable to find module handlebars
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 function
I'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!
Thank you for reporting your problem with exe.
This is a bug which we will look at. You can follow it here https://github.com/jsreport/jsreport/issues/277
Unfortunately I don't see a quick workaround, but I'm sure we fix this very soon
Thank you @jan_blaha. No problem, we'll continue to use the npm installation meanwhile.
This should be now fixed in the latest 1.7 executable