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 D:\Inetpub\vhosts\4loopes.com\4loopes.com\server\index.js from C:\Program Files\iisnode\interceptor.js not supported. index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\Inetpub\vhosts\4loopes.com\4loopes.com\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead). at Object.<anonymous> (C:\Program Files\iisnode\interceptor.js:210:1)