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

[BUG] @microsoft/applicationinsights-web: TypeError: Right side of assignment cannot be destructured #2350

Open
jmyrland opened this issue May 22, 2024 · 3 comments

Comments

@jmyrland
Copy link

Description

Upgrading @microsoft/applicationinsights-web from 3.1.2 vs 3.2.1, we get the following error only on MAC/OS X devices - when using app insights with React.

TypeError: Right side of assignment cannot be destructured

Rolling back to 3.1.2 fixes this issue.

Steps to Reproduce

  • OS/Browser: Safari 17
  • SDK Version [e.g. 22]: ?
  • How you initialized the SDK: ?

Key dependencies for reproduction:

    "@microsoft/applicationinsights-react-js": "17.2.0",
    "@microsoft/applicationinsights-web": "3.2.1",
    "react": "18.3.1",
    "vite": "5.2.11",

Additional context

Add any other context about the problem here.

@Karlie-777
Copy link
Contributor

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

@jmyrland
Copy link
Author

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.

@Karlie-777
Copy link
Contributor

Karlie-777 commented May 30, 2024

do you mind trying the following configs for 3.2.1

{
    connectionString: "YOUR_CONNECTION_STRING",
    ...
    extensionConfig: {
            ["AppInsightsCfgSyncPlugin"]: {
                cfgUrl: ""
            }
    }
}

does the Safari still have the same issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants