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.
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.
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
packages/webapp
.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.