You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I try to use the API for InvokeFromFileAsync but I recieve the following exception:
Message = "resolvedPath.replaceAll is not a function\nTypeError: resolvedPath.replaceAll is not a function\n at IncomingMessage. (file:///C:/Users/user/source/repos/ConsoleApp1/ConsoleApp2/bin/Debug/net6.0/[eval1]:178:58)\n at IncomingMessage.emit (events.js:412:35)\n at endReadableNT (internal/streams/readable.js:1334:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21)"
It occurs for my .js file (which using 3rd party js library) so I tested the example from readme, but same error:
What NodeJS version are you using? For me I had the same issue and turned out I was using NodeJS v14 on my server, after upgrading it to NodeJS v20 everything worked as usual.
Hi,
I try to use the API for InvokeFromFileAsync but I recieve the following exception:
Message = "resolvedPath.replaceAll is not a function\nTypeError: resolvedPath.replaceAll is not a function\n at IncomingMessage. (file:///C:/Users/user/source/repos/ConsoleApp1/ConsoleApp2/bin/Debug/net6.0/[eval1]:178:58)\n at IncomingMessage.emit (events.js:412:35)\n at endReadableNT (internal/streams/readable.js:1334:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21)"
It occurs for my .js file (which using 3rd party js library) so I tested the example from readme, but same error:
start.js
module.exports = (callback, message) => callback(null, { resultMessage: message });
C# code is
The exception thrown on the calling to InvokeFromFileAsync
The original JS code was
var result = await nodeJSService.InvokeFromFileAsync<Result>(scriptPath, "test", args: new[] { "success" });
Not sure what I've missed.
The text was updated successfully, but these errors were encountered: