proxy-client-react icon indicating copy to clipboard operation
proxy-client-react copied to clipboard

Unleash NextJS not working on old browser like Chrome v50

Open chenxeed opened this issue 1 year ago • 1 comments

Describe the bug

Hi! 👋

Firstly, thanks for your work on this project! 🙂

I have an issue on trying to use unleash on my client side.

I'm supporting old browser up to Chrome v50, and I got an error that the page cannot load due to the usage of async await in the updateContext:

image

Screenshot 2024-08-06 190448

Steps to reproduce the bug

  1. Use @unleash/nextjs which also rely on @unleash/proxy-client-react
  2. Build the app in nextJS
  3. Open the app in old browser like Chrome v50

Expected behavior

No unsupported syntax on old browser that triggers error.

Logs, error output, etc.

Uncaught SyntaxError: Unexpected identifier

Screenshots

image

Screenshot 2024-08-06 190448

Additional context

No response

Unleash version

v4.3.0

Subscription type

Open source

Hosting type

Self-hosted

SDK information (language and version)

frontend SDK

chenxeed avatar Aug 06 '24 12:08 chenxeed

Hi @chenxeed thanks for the issue and the contribution! We'll look into it!

gastonfournier avatar Aug 07 '24 07:08 gastonfournier

We’re aware that older browsers might face issues, but we’re focusing our efforts on current versions. Chrome 50 is nearly 9 years old and should not be used due to security concerns. If you need modifications for older browsers, feel free to fork the repository and adjust the code. Thank you for your understanding.

Tymek avatar Feb 05 '25 11:02 Tymek