Application Error when adding react-qr-reader package to React app in Azure App Service

Neha Moradia 5 Reputation points
2024-04-02T14:06:20.65+00:00

image.png

I encountered an Application Error when adding the "react-qr-reader" package to a React app in an Azure App Service. Initially, I deployed the app successfully with the "SCM_DO_BUILD_DURING_DEPLOYMENT" variable set in the Azure app settings. However, after adding the "react-qr-reader" package, the pipeline failed with the error message "Failed to deploy web package to App Service."

To fix the pipeline error, I removed the "SCM_DO_BUILD_DURING_DEPLOYMENT" variable and set "WEBSITE_RUN_FROM_PACKAGE" in the Azure app service app settings. This resolved the pipeline issue, but I still cannot access the web app, and it's giving an Application Error, which I have included a screenshot of.

This only happens when the barcode-related packages are added. I checked the logs in Azure log stream and enabled Application Insights, but I'm still unable to find the root cause of the issue. Please check attached Log.txt

image.png

Can someone help me fix this issue or provide guidance on how to debug it? I have attached a screenshot of the error message, logs, and information on what I have already tried.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,931 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.