External Modules in jsreportonline?
-
I am not seeing a way to allow for external modules in scripts in jsreportonline as there needs to be a modification to a configuration file?
-
Please see here the difference on-prev vs jsreportonline and also hint how to use custom npm modules
https://jsreport.net/learn/online-faq#dedicated-on-prem-vs-jsreportonline
-
@jan_blaha thanks alot for all your responses . However with this particular link i followed through with the online example but it did not render my qrcode in the specified div . The link to the example is here .
https://playground.jsreport.net/w/admin/q7MtIkV7
And my script in my template is here below
-
hi @Sesughter01 if you inspect the logs in the "profile" tab in Studio you will see there is an error, that error comes from
qrcodejs
not being a package that exports browser code as a module.you can inspect here what they export, in this case, it is better to load the code directly from a cdn (or you can also download the code manually and put it in an asset) like https://unpkg.com/.
here is an example that uses unpkg to produce the qrcode
-
Thanks alot @bjrmatos this worked perfectly for me .