proxy-client-react
proxy-client-react copied to clipboard
Unleash NextJS not working on old browser like Chrome v50
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:
Steps to reproduce the bug
- Use
@unleash/nextjswhich also rely on@unleash/proxy-client-react - Build the app in nextJS
- 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
Additional context
No response
Unleash version
v4.3.0
Subscription type
Open source
Hosting type
Self-hosted
SDK information (language and version)
frontend SDK
Hi @chenxeed thanks for the issue and the contribution! We'll look into it!
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.