I have uninstalled / reinstalled 2020.5.1 and it still errors.. rolling back to the previous version fixes this.
my test.js
Code: Select all
console.log("hello");
var Stim=require('stimulsoft-dashboards-js');
console.log("there");
and when I run `node test.js`
It returns..
Code: Select all
hello
W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.reports.js:54
a._table_0=[14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,24,24,26,24,24,24,20,21,24,25,24,19,24,24,8,8,8,8,8,8,8,8,8,8,24,24,25,25,25,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,24,21,27,18,27,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,25,21,25,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,26,26,26,26,28,28,27,28,1,22,25,19,28,27,28,25,10,10,27,1,28,24,27,10,1,23,10,10,10,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,25,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,25,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0
ReferenceError: window is not defined
at Function.toBase64String (W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.reports.js:54:45568)
at W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:8:215617
at W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:8:216271
at W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:8:216301
at W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:8:216335
at W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:7:130
at Object.<anonymous> (W:\Node_JS_Dash\node_modules\stimulsoft-dashboards-js\Scripts\stimulsoft.dashboards.js:7:299)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)