Application Error when adding react-qr-reader package to React app in Azure App Service
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
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.