Things have generally been working out very well for me with this adapter, so thanks for making it. However, today I just started running into a weird issue when building deployments:
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](https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config) configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using [debugging](http://tomasz.janczuk.org/2011/11/debug-nodejs-applications-on-windows.html) and [ETW traces](http://tomasz.janczuk.org/2011/09/using-event-tracing-for-windows-to.html) to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'F:\Inetpub\wwwroot\supplies_new\.svelte-kit\adapter-iis\app\server\chunks\lifecycle-DOUBWpHv.js' imported from F:\Inetpub\wwwroot\supplies_new\.svelte-kit\adapter-iis\app\server\index.js
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at moduleResolve (node:internal/modules/esm/resolve:933:10)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///F:/Inetpub/wwwroot/supplies_new/.svelte-kit/adapter-iis/app/server/chunks/lifecycle-DOUBWpHv.js'
}
(node:4708) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
No errors arise during the build step itself but Ican see that there's no app/server/chunks/lifecycle-DOUBWpHv.js being generated, though there is output/server/chunks/lifecycle.js.
Sorry @selfagency for not seeing this sooner. Are you still experiencing this? I'm not familiar with this error so if you can do some troubleshooting, that would help towards figuring this out.
Things have generally been working out very well for me with this adapter, so thanks for making it. However, today I just started running into a weird issue when building deployments:
No errors arise during the build step itself but Ican see that there's no
app/server/chunks/lifecycle-DOUBWpHv.js
being generated, though there isoutput/server/chunks/lifecycle.js
.