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

Not working in the lower version of Safari #50

Closed
Sphinm opened this issue Jan 25, 2024 · 0 comments · Fixed by #51
Closed

Not working in the lower version of Safari #50

Sphinm opened this issue Jan 25, 2024 · 0 comments · Fixed by #51

Comments

@Sphinm
Copy link

Sphinm commented Jan 25, 2024

What is the current behavior?

Hello, I found that it cannot be used in the lower version of Safari ios browser. After debugging, it was found that the syntax error was reported, and it was located that it was a problem with the react-turnstile library. The reason is that the ?? syntactic sugar is still used in the build product. The minimum valid version of this syntax in Safari ios is 13.4. If it is lower than this version, an error will be reported.

I tried forking the code to modify the unbuild configuration, but I'm not familiar with how to configure commonjs in this library, so it never took effect. I hope you can help me deal with it. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant