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.