-
Notifications
You must be signed in to change notification settings - Fork 167
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
FORMAT_ERROR when using the Intl.RelativeTimeFormat
polyfill with v6.0.0
of ember-intl
#1778
Comments
Hi, @Pjaerr. Thanks for reporting the bug and providing code. As I'm still new to the project, I'm not familiar with installing polyfills for // app.js (Ember app entry point)
import '@formatjs/intl-relativetimeformat/polyfill';
import '@formatjs/intl-relativetimeformat/locale-data/en'; // Add English data
import '@formatjs/intl-relativetimeformat/locale-data/fr'; // Add French data
import '@formatjs/intl-relativetimeformat/locale-data/es'; // Add Spanish data
// etc. Have you tried conditionally importing the polyfills in Also, do you have ideas about which code could be causing the error to be thrown? |
👋 @ijlee2 Yeah that's right, the I will try and dig into it a bit more once I have some time to see if I can see where things are blowing up. |
Sounds good, thanks! |
Will close the issue as there's little information to go on. |
The
Intl.RelativeTimeFormat
polyfill is blowing up on the latest6.0.0-beta.X
builds, showing the following in the console on Safari 13:This does not happen on
5.7.2
.We're loading the polyfill in the application route like:
Environment
4.12.0
5.2.0
6.0.0-beta.7
(but the issue happens on all beta versions)v18.16.0
Steps to Reproduce
6.0.0-beta.1
or above ofember-intl
@formatjs/intl-relativetimeformat
this.intl.formatRelative
on a browser that isn't supported (such as Safari 13 on an iPad Simulator running iOS 13.7)The text was updated successfully, but these errors were encountered: