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:

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
(node:4764) [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)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (D:\Application\PAMTC\build\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:471:10)
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:503:5
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:358:12
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:236:3
    at runSyncOrAsync (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at processResource (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:208:3)
    at iteratePitchingLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
    at iteratePitchingLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (D:\Application\PAMTC\build\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:471:10)
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:503:5
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:358:12
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:236:3
    at runSyncOrAsync (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at processResource (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:208:3)
    at iteratePitchingLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
    at iteratePitchingLoaders (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
Application has thrown an uncaught exception and is terminated:
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (D:\Application\PAMTC\build\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:417:16)
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:452:10
    at D:\Application\PAMTC\build\node_modules\webpack\lib\NormalModule.js:323:13
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (D:\Application\PAMTC\build\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at D:\Application\PAMTC\build\node_modules\next\dist\compiled\babel-loader\index.js:1:3616