无法使用EdgeJS在空引用Node.js上执行绑定

时间:2018-10-16 11:18:05

标签: node.js electron edgejs

在nodejs中运行c#方法时出现此错误

protected void MakeReport(string message) { ((Func<object, Task<object>>)_input.event_handler)(new { message }).Start(); }

  

Stacktrace:

Error: Cannot perform runtime binding on a null reference
at Object.exports.func (C:\Users\Spunk06\Desktop\bk\node_modules\electron-edge-js\lib\edge.js:181:17)
at Object.<anonymous> (C:\Users\Spunk06\Desktop\bk\main.js:327:38)
at Object.<anonymous> (C:\Users\Spunk06\Desktop\bk\main.js:560:3)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at loadApplicationPackage (C:\Users\Spunk06\Desktop\bk\node_modules\electron\dist\resources\default_app.asar\main.js:287:12)
at Object.<anonymous> (C:\Users\Spunk06\Desktop\bk\node_modules\electron\dist\resources\default_app.asar\main.js:329:5)

请指导。

0 个答案:

没有答案