JsReport.Local - Extensions not loaded
-
Hi,
We are about to buy a JsReport enterprise licence but w're facing a new problem with our .NET Core WebApi and JsReport.Local... We're unable to load custom extensions, only default extensions, engines and recipes are available.
(We've cautious followed doc for installing custom extensions with JsReport.Local)Discover is activated in our jsreport.config.json and there is a package.json in our "jsreport" directory and this directory is build copied to output including "nodes_modules" dir.
jsreport.config.json: https://i.imgur.com/K4720f3.png
package.json: https://i.imgur.com/Dablfzp.png
js report (build copied) directory: https://i.imgur.com/5oOnHb6.png
nodes_modules directory: https://i.imgur.com/lWlw00J.png
ioc declaration: https://i.imgur.com/BHyH2cX.png
console output: https://i.imgur.com/vuljKxM.pngSo config is successfully loaded from "jsreport" directory but it seems no extensions are detected...
We're running out of ideas, hope someone can help us.
Thanks in advance !
-
@jan_blaha If u can take a look, it's critical for us and outcome of this will drive our choice of buying an entreprise license or not
-
Ups, we didn't have nullable type in c# configuration types for Discover so it was overriding the
jsreport.config.json
.
Please do this for now:.Configure(cfg => { cfg.AllowedLocalFilesAccess().FileSystemStore().BaseUrlAsWorkingDirectory(); cfg.Discover = true; return cfg; })
-
@jan_blaha A big thanks for your time !
-
You are welcome, sorry for your troubles. It will be fixed in the next release.