2017-06-08 5 views
1
Error occured - Error during rendering report: Unsupported module in scripts: http. To enable require on particular module, you need to update the configuration as {"scripts": { "allowedModules": ["http"] } } ... Alternatively you can also set "*" to allowedModules to enable everything 

Stak - エラー:スクリプトでサポートされていないモジュール:http。特定のモジュールでrequireを有効にするには、設定を{"scripts":{"allowedModules":["http"]}}として更新する必要があります... allowModulesに "*"を設定すると、 (/Users/ravikirankk/Projects/I-Team/srdm/jsreport/node_modules/jsreport-scripts/lib/scriptEvalChild.js:44:11) at evalmachine.:2:12 at ContextifyScript.Script.runInContext(vm。 js:32:29) ContextifyScript.Script.runInNewContext(vm.js:38:15) Object.runInNewContext(vm.js:91:38) at module.exports(/ Users/ravikirankk/Projects/I -Team/srdm/jsreport/node_modules/jsreport-scripts/lib/scriptEvalChild.js:123:6) のプロセスです。 (/Users/ravikirankk/Projects/I-Team/srdm/jsreport/node_modules/script-manager/lib/worker-processes.js:48:36) at emitTwo(events.js:106:13) at process。放射(events.js:194:7)process.nextTickで (内部/ child_process.js:766:12)スクリプトでサポートされていないモジュールを取り除く方法:http:jsreport

答えて

1
require('jsreport')({ "scripts": { 
"allowedModules" : ["http"] 

}})

更新ザがserver.jsファイル内のステートメントを必要とします

関連する問題