microsoft / community-organization-operations-suite

Applications & tools for Community-Based Organizations (CBOs) to work together more effectively
MIT License
12 stars 7 forks source link

OCR Demo - Form Recognizer JS compatibility issue with Application Insights JS #663

Open asylves1 opened 2 years ago

asylves1 commented 2 years ago

Issue

The Azure Application Insights SDK (used for Telemetry) has compatibility issue with other Azure SDKs that produce a SyntaxError: The requested module <X> does not provide an export named 'default' (AppInsightsErrorBoundary.js)

This will cause the application to crash when developing on a personal machine and the app will require a restart.

Reproduce

It appears to be related to this Github issues

Temporary Solution

To be able to use the Azure Form Recognizer SDK to work within the OCR Demo we created an Azure Function App to run the code apart from the webapp which use Azure Application Insights SDK.

In the future we may need a better solution if the issue continues to persist.