iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Application has thrown an uncaught exception and is terminated: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Inetpub\vhosts\my-template.ir\httpdocs\Backend\server.js from C:\Program Files\iisnode\interceptor.js not supported. Instead change the require of server.js in C:\Program Files\iisnode\interceptor.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Program Files\iisnode\interceptor.js:210:1)