Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asylves1 opened this issue Jul 13, 2022 · 0 comments
Labels
Engineering Internal engineering team issue

Comments

@asylves1
Copy link
Collaborator

asylves1 commented Jul 13, 2022

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

  • Install any Azure SDK on the packages/webapp.
  • Import and use methods from both packages.
  • Navigate to page using Azure's imported method

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.

@asylves1 asylves1 added the Engineering Internal engineering team issue label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Internal engineering team issue
Projects
None yet
Development

No branches or pull requests

1 participant