Skip to content

@statsig/session-replay v3.25.5 crashes on Safari 15 with "Invalid regular expression: invalid group specifier name" #36

@MattisAbrahamsson

Description

@MattisAbrahamsson

Description

The @statsig/session-replay package (v3.25.5) causes the website to completely fail to load on Safari version 15.6.

There is a closed issue here about the same exact problem, it was closed despite this issue not being fixed. I have verified that this is still an issue in the latest version

Steps to Reproduce

  1. Install @statsig/session-replay@3.25.5
  2. Include the package in a React application
  3. Build the application for production
  4. Open the built application in Safari 15
  5. The website fails to load

Error Message

SyntaxError: Invalid regular expression: invalid group specifier name

Expected Behavior

The website should load normally and session replay functionality should work.

Actual Behavior

The website completely fails to load with the above syntax error.

Environment

  • Browser: Safari 15.6.1 (macOS)
  • Package Version: @statsig/session-replay@3.14.1
  • Build Tool: Create React App with CRACO
  • JavaScript Target: ES6

Additional Information

The issue is consistent and reproducible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions