-
Notifications
You must be signed in to change notification settings - Fork 240
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
[BUG] @microsoft/applicationinsights-web
: TypeError: Right side of assignment cannot be destructured
#2350
Comments
Is your application behind firewall? the one major feature added in 3.2.1 is https://github.com/microsoft/ApplicationInsights-JS?tab=readme-ov-file#service-notification |
IDK, but we're hosting the app in an Azure app service. Might be something there by default. Seems weird to me that this will cause issues only on Safari? The app works fine on windows using chrome, but throws this error in Safari. |
do you mind trying the following configs for 3.2.1
does the Safari still have the same issue? |
It seems that this magical config fixes this issue 🤯Tested using version What does this config do? Will this be patched, or do we need to keep this config? |
This is the new extension https://github.com/microsoft/ApplicationInsights-JS?tab=readme-ov-file#service-notification we added to the web sku. |
|
Ok, so if I understand correctly, this specific config opts out of the feature you mentioned. Without opting out, our apps are bricked for specific browsers (Safari on Mac OSX, all versions). So that's a deal breaker for us. iDK if we have a special combination of dependencies causing this or if this is the case for others as well. If so, I would assume you'd get more inquiries about this. Also, this error was thrown as part of "react router", and did not mention app insights as part of the stack trace, so it might be hard to track down this package as the culprit. Anyways, opting out of this fixed the issue for us 👍 |
Description
Upgrading
@microsoft/applicationinsights-web
from3.1.2
vs3.2.1
, we get the following error only on MAC/OS X devices - when using app insights withReact
.Rolling back to
3.1.2
fixes this issue.Steps to Reproduce
Key dependencies for reproduction:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: