jsreport-core and custom extension



  • I have created a custom extension,
    the extension is located in the "extensions/entities" directory.
    When i use

    import JsReport from 'jsreport'
    

    jsreport finds it automatically, but when I use

    jsreport = require('@jsreport/jsreport-core')(jsReportCfg)
    

    i can load another extensions with

    jsreport.use(require('@jsreport/jsreport-assets')())
    

    but I can't find a way to load my custom extension.

    I hope you can help me with this, thank you very much!!

    Regards, Pablo



  • You can add the following to the config to force searching for extensions

    {
      "discover": true
    }
    

    Or you can use jsreport.use(require('./pathtoyourextension/index.js')())


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.