Skip to content

SyntaxError: Unexpected private name #o. Cannot parse class method with private name. #1330

Closed as not planned
@jozefizso

Description

@jozefizso

NewRelic browser monitoring agent fails in web view on macOS.

Description

Our website is using the NewRelic monitoring agent.

Steps to Reproduce

  1. Create macOS app with a web view.
  2. Run the app on macOS 11 or macOS 12
  3. Load website with NewRelic monitoring agent
  4. Page fails to load and a fatal SyntaxError prevents any other JS code to execute.

Expected Behavior

NewRelic will monitor correctly the website in any browser the customer is using.

The SyntaxError is so fatal we cannot even run the error handler code to display an error message, or log it to the server.

The NewRelic monitoring agent does not capture the error caused by the @newrelic/browser-agent library.

Relevant Logs / Console output

SyntaxError: Unexpected private name #o. Cannot parse class method with private name.

Your Environment

  • Safari 14, 15, 16
  • macOS 11
  • Browser agent version: 1.246.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions