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
formatDateTimeRange gives: Cannot read property 'patternParts' of undefined #4168
Comments
Same issue here |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue. |
do you have a repro? |
<FormattedDateTimeRange
day="numeric"
month="short"
weekday="short"
hour="2-digit"
minute="2-digit"
year={thisYear ? undefined : "numeric"}
from={sessionStartDate}
hour12={config.use12HourTime}
to={sessionEndDate}
/> |
What can i do to help fix this? This issue for us is a major dealbreaker before being able to go live. |
No one has provided a repro link yet. I'm not familiar w react native and hermes |
@longlho working on a expo snack as we speak, the web version will always work because it does not need polyfills but the react native version does use the polyfills. |
@longlho
The first value is normal date and the other 2 are ranges. |
Without the polyfill this is the error (logical):
and with this is the error:
|
This is the value of internalSlots
|
What can i do to progress this issue further as this is big dealbreaker for us. |
I can try looking tonight |
@longlho if i Can help let me know! |
something's wrong w/ best fit format matching for
as option |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue. |
Yep, the workaround works for now but should be needed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still active. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue |
Pin this so stalebot would go away. Fixing skeleton matching is non-trivial so will take some time once I found the time. |
Which package?
react-intl
@formatjs/intl-datetimeformat
@formatjs/intl-getcanonicallocales
@formatjs/intl-listformat
@formatjs/intl-locale
@formatjs/intl-numberformat
@formatjs/intl-pluralrules
@formatjs/intl-relativetimeformat
Describe the bug
When using React Native with the polyfills it gives the error mentioned above, when not using the polyfills it will give the error:
getDateTimeFormat(locale, filteredOptions).formatRange is not a function (it is undefined)
Expected behavior
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: