The problem seems pretty clear. Indeed, I can see that in version 1.16.3 an import of lodash.merge was added to dist\common-amqp\amqp.js, but this module is not added as a dependency in package.json. There is a depenency to lodash, but that is not to lodash.merge which is a seperate package.
This is an issue for azure-iot-hub-node, which we no longer hold ownership of. If you file this issue here, it should be an easy fix for them. I'll close this out, but if you have other issues feel free to re-open or file a new ticket.
Context
Description of the issue
We are running an Azure Function on an app service plan that is running on an app service plan. The function runs into the following error:
The problem seems pretty clear. Indeed, I can see that in version 1.16.3 an import of lodash.merge was added to dist\common-amqp\amqp.js, but this module is not added as a dependency in package.json. There is a depenency to lodash, but that is not to lodash.merge which is a seperate package.