Auth0 + Node js + Azure

Hi, i’ve developed sample backend app in typescript + node js. And this app works as expected locally. But when i deploy this app, i end up getting following error:

Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read property ‘prototype’ of undefined
at Object.inherits (util.js:511:43)
at Object. (D:\home\site\wwwroot\node_modules\sshpk\lib\ed-compat.js:25:6)
at Module._compile (module.js:446:26)
at Object…js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object. (D:\home\site\wwwroot\node_modules\sshpk\lib\private-key.js:17:16)
at Module._compile (module.js:446:26)

i end up getting this error, on all APIs . If i remove auth0 dependencies, these non-auth APIs works fine.

The issue seems to be with sshpk library. can you tell us what auth0 nodejs adk you are using and what version?

sorry im new, hope you are asking below details.

node: v12.8.0

"@types/body-parser": "^1.17.1",
"express": "^4.17.1",
"express-jwt": "^5.3.1",
"express-jwt-authz": "^2.3.1",
"jwks-rsa": "^1.6.0"

Meanwhile, i unblocked myself using docker…which works like charm.