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

Unleash NextJS not working on old browser like Chrome v50 #173

Open
chenxeed opened this issue Aug 6, 2024 · 1 comment
Open

Unleash NextJS not working on old browser like Chrome v50 #173

chenxeed opened this issue Aug 6, 2024 · 1 comment
Assignees

Comments

@chenxeed
Copy link

chenxeed commented Aug 6, 2024

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

@gastonfournier
Copy link

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

@Tymek Tymek removed the bug Something isn't working label Aug 7, 2024
@gastonfournier gastonfournier self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants