If I run the project locally with
ng serve -o
everything works as expected
However, once I build it (either dev or prod build) and deploy it to either an Azure web app or a local web server on my machine I get the error of
connectionContext.js:20 Uncaught TypeError: os__WEBPACK_IMPORTED_MODULE_2__.type is not a function - within connectionContext.js (from the azure event hubs SDK)
I performed
npm install
and all modules install but I still get the same error each time.
I am assuming something is added when running locally via the ng server but is not included within a build.
Is there anything to check for that I may have missed?
UPDATE: I have this running now by removing the functions that were causing the issue, not a fix more a hack to try and get progression. However, if I deploy to a local web server on my machine or to a raspberry pi it runs as expected. But when I deploy it to an azure web app it does not work as expected and states it cannot find 2 files (even though they can be seen via the FTP)