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

Blocking error on Safari v. 12.x #508

Closed
coderjib opened this issue Feb 13, 2021 · 3 comments
Closed

Blocking error on Safari v. 12.x #508

coderjib opened this issue Feb 13, 2021 · 3 comments

Comments

@coderjib
Copy link

Good morning,
on Safari on iOS version 12.4 we're having a blocking error that prevents even site loading:
TypeError: undefined is not a constructor (evaluating 'new Intl.PluralRules(lang)')

The line throwing the error is the following, inside file I18nProvider.js:
var pluralRules = new Intl.PluralRules(lang)

After some research it seems to be an issue with retro-compatibility, as this feature seems to be supported on Safari from v. 13

Again, the site doesn't load at all, neither in dev nor in production, while with recent browsers everything works fine.
Is there a solution and/or a workaround you can suggest to get our site working again?

Thanks in advance

@joaobibiano
Copy link

I`m getting the same error!

Please, can you help us?

alt text

alt text

@joaobibiano
Copy link

Good morning,
on Safari on iOS version 12.4 we're having a blocking error that prevents even site loading:
TypeError: undefined is not a constructor (evaluating 'new Intl.PluralRules(lang)')

The line throwing the error is the following, inside file I18nProvider.js:
var pluralRules = new Intl.PluralRules(lang)

After some research it seems to be an issue with retro-compatibility, as this feature seems to be supported on Safari from v. 13

Again, the site doesn't load at all, neither in dev nor in production, while with recent browsers everything works fine.
Is there a solution and/or a workaround you can suggest to get our site working again?

Thanks in advance

I could solve my problem installing on the project this polyfill

https://github.com/eemeli/intl-pluralrules

Can you test? It solved my problem.

@coderjib
Copy link
Author

It works with your suggestion!
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
Development

No branches or pull requests

2 participants